2009-10-02 50 views
0

鑑於以下XML,可以測試以查看列表後面是否存在任何文本,但仍位於quote-para節點內。這可能是很基本的,但我不能讓我的頭周圍爲這一個開始:當另一個文本出現在節點中時,節點中出現的文本的XSL測試

<quote-block open="&quot;" close="&quot;"> 
<quote-para>In the result I would restate the <emphasis strength="normal">Windsurfing</emphasis> 
    questions thus: <list prefix-rules="specified"> 
     <item prefix="(1)"> 
      <list prefix-rules="specified"> 
       <item prefix="(a)"> 
        <para>Identify the notional <quote open="&quot;" close="&quot;" 
          >person skilled in the art</quote></para> 
       </item> 
       <item prefix="(b)"> 
        <para>Identify the relevant common general knowledge of that person;</para> 
       </item> 
      </list> 
     </item> 
     <item prefix="(2)"> 
      <para>Identify the inventive concept of the claim in question or if that cannot 
       readily be done, construe it;</para> 
     </item> 
     <item prefix="(3)"> 
      <para>Identify what, if any, differences exist between the matter cited as forming 
       part of the <quote open="&quot;" close="&quot;">state of the art</quote> 
       and the inventive concept of the claim or the claim as construed;</para> 
     </item> 
     <item prefix="(4)"> 
      <para>Viewed without any knowledge of the alleged invention as claimed, do those 
       differences constitute steps which would have been obvious to the person skilled 
       in the art or do they require any degree of invention?</para> 
     </item> 
    </list> 
</quote-para> 

回答

1

我假設你的意思的文字不包裹在另一個元素?試試這個XPath:

//quote-para/list/following-sibling::text() 
+0

感謝那正是我的意思,現在看起來如此明顯。乾杯 – Mike 2009-10-05 07:49:52