|
Subject: Re: [xsl] Blindstaring on descendent(-or-self), following(-sibling) and the like, from inside an xsl:function From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Tue, 26 Sep 2006 19:22:17 +0200 |
Question: is the first item inside $someparam a text-node or any other node? Whitespace is considered a textnode also.Putting it a bit clearer: xpath must return true for the following nodes:
<em>some text</em> <em> <strong>bla</strong></em> <em>some text<strong>bold text</strong>more text</em> <em> </em>
and must return false in these scenarios: <em /> <em><strong>bold text</strong>more text</em> <em><em>text</em>text<strong>bold text</strong></em>
<xsl:function name="local:myfunc">
<xsl:param name="param1" />
<xsl:if test="WHAT_GOES_HERE">
do something when node starts with text
</xsl:if>
</xsl:function>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Blindstaring on descendent(-o, Abel Braaksma | Thread | Re: [xsl] Blindstaring on descenden, Wendell Piez |
| Re: [xsl] processing text nodes one, Mukul Gandhi | Date | Re: [xsl] Blindstaring on descenden, Wendell Piez |
| Month |