hi, I need select a node like "//element[@attr='value']", but the "attr" in document can be "Attr", "ATtr" and so on, as well as the "value".
I know I can select element with case insensitive using translate function like "//*[translate(name(), 'abc','ABC')='ABC']"
But how can I let it work with attribute and its value?
Can anybody help me? Thanks.
phoenix.zhp
0
Newbie Poster
Recommended Answers
Jump to PostHello to XML user
xml for testing
<?xml version="1.0"?> <root> <element attr='Abc'/> <element Attr='ABc'/> <element ATtr='abC'/> <element attr='ABC'/> <element attr='AbC'/> <element class='AbC'/> </root> <?xml version='1.0'?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output indent="yes" method="xml"/> <xsl:template match="/"> <root> <xsl:apply-templates select="//element"/> </root> </xsl:template> <xsl:template …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.