当另一个文件阻塞时,节点中存在的文本的XSL测试

时间:2009-10-02 14:32:46

标签: xml xslt

鉴于以下XML,可以测试列表后是否存在任何文本,但仍在quote-para节点内。这可能是非常基本的,但我无法理解从这个开始的地方:

<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 个答案:

答案 0 :(得分:1)

我认为你的意思是不包含在另一个元素中的文字?试试这个XPath:

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