I want to retrieve the XML element node based on the given string value. The element node can be described at any levels in a nested XML, there was no specific structure that this XML has. How to do this in XSLT transformation?
相关问题
- Illegal to have multiple roots (start tag in epilo
- Newtonsoft DeserializeXNode expands internal array
- how to use special characters like '<'
- XML - XSLT - document() function inside count() fu
- convert logback.xml to log4j.properties
相关文章
- Creating XML Elements without namespace declaratio
- Get Attribute Value From Simple XML Using JQuery /
- Directly signing an Office Word document using XML
- When sending XML to JMS should I use TextMessage o
- Fragment Content Overlaps Toolbar and Bottom Navig
- Getting “Error: Missing Constraints in ConstraintL
- xslt localization
- Upgrading transaction.commit_manually() to Django
I would use a key:
then you can use e.g.
and
If there can be several elements with the same contents and you are only interested in the first then use
That assumes you want to find elements with no child elements where the string value matches your variable, other approaches like matching on the name of an element are of course also possible:
<xsl:key name="k1" match="*" use="local-name()"/>
.