實施例1:XSLT:對於每個節點變換,如果A = 2及A = 1均被發現這樣做別的做
<time>
<timestamp>01:00</timestamp>
<event>arrived<event>
</time>
<time>
<timestamp>02:00</timestamp>
<event>left<event>
</time>
實施例2:
<time>
<timestamp>02:00</timestamp>
<event>left<event>
</time>
的XSLT需要這樣做:
- 爲每個節點DO:
- IF事件=已到達然後設置事件類型= atdestination
- IF事件=左側是發現和事件=抵達被找到,那麼設置新的節點類型= leftdestination ELSE設置類型=左
XSLT施加到實施例1:
<event>
<time>01:00</time>
<type>atdestination</type>
<event>
<event>
<time>02:00</time>
<type>leftdestination</type>
<event>
XSLT應用於例如2:
<event>
<time>02:00</time>
<type>left</type>
<event>
你能解釋= 1和A = 2?也許你的轉變的結構?更多的上下文會有所幫助。 – justkt 2010-03-19 15:08:20
如何改變? – Larry 2010-03-19 15:30:11
你不能清楚地制定一個問題...... :( 這是文本中的任何地方都沒有「A」 - 只在標題中,這是絕對令人困惑 這隻能表明你唯一的問題是你不知道問題出在哪裏 通常情況下,那些不能表達問題的人通常不會自己想出問題所在,因此,不要浪費SO讀者的時間if你沒有至少有一個令人滿意的問題的定義 失敗! – 2010-03-19 16:19:10