Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
XSLT or XPATH counting children matching condition
Thanks in advance for anyone who can assist.
I have an interesting problem in XSLT where I want to end up with a condition symmantically similar to:
Using a template matching "p",here is an example input XML file to be transformed:
This text should appear in transformed version.
This text should not be seen.
The more specific problem is how to count the number of child nodes that have matching text to "web".
I've tried using a for-each loop with an xsl:variable element to count but xsl:variable can't be updated.
0 · ·