[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Handling position in non-atomic sequences
Am 02.05.2020 um 12:52 schrieb Michael MC<ller-Hillebrand mmh@xxxxxxxxx:
Hi folks,nice function index-of().
preceding-sibling or following-sibling. I can solve that by not typing the variable or use as="document-node()" after adding <xsl:document> to the variable's sequence constructor. would be something like: sequence? functx has a function http://www.xsltfunctions.com/xsl/functx_index-of-node.html which might help, using the `is` operator: <xsl:function name="functx:index-of-node" as="xs:integer*" xmlns:functx="http://www.functx.com"> <xsl:param name="nodes" as="node()*"/> <xsl:param name="nodeToFind" as="node()"/> <xsl:sequence select=" for $seq in (1 to count($nodes)) return $seq[$nodes[$seq] is $nodeToFind] "/> </xsl:function>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|