Jump to content

XPath 2.0 support


asylum

Recommended Posts

I want to get all the div elements and print their attributes (name value) style but I get an XPath parse error when I load it in firefox 1.5. Does anyone support XPath 2.0 yet or am I just doing something wrong?

<xsl:for-each select="div">    <xsl:value-of select="for $n in @* return concat(local-name($n),$n)"/></xsl:for-each>

Link to comment
Share on other sites

I don't think any browser supports XPath 2.0 yet. Not to mention that what you're actually using is XQuery which would never be avaiable for XSLT 1.0 anyway. It's suppose to be avaible for XSLT 2.0, but it's all unofficial yet.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...