Quantcast
Channel: XPath relative path in expression - Stack Overflow
Browsing all 5 articles
Browse latest View live

Answer by Filburt for XPath relative path in expression

One more possible solution using xsl:key<xsl:key name="kItemId" match="item" use="@id" /><xsl:template match="root"><xsl:for-each select="group"><xsl:value-of...

View Article


Answer by Ravish for XPath relative path in expression

Looking at the XML, if I assume that you have <item> and <group> as siblings and in any order.Then a sample input XML would look like the following.<?xml version="1.0"...

View Article


Answer by Mitya for XPath relative path in expression

This has to do with context. As soon as you enter a predicate, the context becomes the node currently being filtered by the predicate, and no longer the node matched by the template.You have two...

View Article

Answer by user207421 for XPath relative path in expression

Your expression searches for an item whose id attribute matches its own ref_item_id. You need to capture the current ref_item_id in an xsl:variable and refer to that xsl:variable in the expression.

View Article

XPath relative path in expression

I am in 'group' node. From it, I want to find such 'item' node, that has 'id' attribute equals to current's 'group' node 'ref_item_id' attribute value. So in my case, by being in 'group' node B, I want...

View Article

Browsing all 5 articles
Browse latest View live


Latest Images