asylum Posted June 4, 2006 Share Posted June 4, 2006 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 More sharing options...
boen_robot Posted June 4, 2006 Share Posted June 4, 2006 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 More sharing options...
asylum Posted June 4, 2006 Author Share Posted June 4, 2006 Doesn't matter, I found what might be a solution. Perl is awesome, that's all I'll say...C + the web = da bomb. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now