Altova Mailing List Archives

Re: [xsl] Blindstaring on descendent(-or-self), following(-sibling) and the like, from inside an xsl:function

From: Wendell Piez <wapiez@---------------->
Date: 9/26/2006 8:07:00 PM

That would be:



At 01:22 PM 9/26/2006, you wrote:
Abel Braaksma wrote:
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>

Consider the node 'em' in the above examples as being in a param for 

<xsl:function name="local:myfunc">
   <xsl:param name="param1" />
   <xsl:if test="WHAT_GOES_HERE">
       do something when node starts with text


-- Abel


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.