Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
On the <xsl:for-each select="$matchedNodes"/> loop; it selects multiple matched nodes of different document types.
How can I check if the $matchedNodes is of certain document type?
<xsl:when test="$matchedNodes/self::SC_ServiceCategory[@isDoc] | $matchedNodes/self::SC_ServiceItem[@isDoc]"/>
This is not working for me.
As you can see, $matchedNodes is plural, it doesn't have just 1 type, but the nodes are all of a different type. So if you want to filter then, you should do that in the for-each loop and check it like:
<xsl:if test="./local-name() = 'MyType'">
You are absolutely right, I just managed to find solution the same way.
Thanks for the help.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted