[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Xalan won't accept QName in XPath node test

Subject: Xalan won't accept QName in XPath node test
From: Kim Thrysøe <kt@xxxxxxxx>
Date: Wed, 07 May 2003 16:24:10 +0200
thrys e
I hope one of you guys have seen before and can give me a hint as to what I am doing wrong. I cannot find anything pointing me to a solution either in this mailing list or elsewher.

Simple problem : Match an element in a default namespace from an XSL stylesheet.
Wrong solution: (My files are inlined below)
Declaring the same namespace as 'art' within the stylesheet and using the xpath expression "art:Article" to match <Article/> elements.


That does not work. XmlSpy / IE6 has no trouble stylesheeting the same files.

Am I doing something wrong or is Xalan doing something wrong?

Any help and hints greatly apprecieated.


*Source document* <Article xmlns="/type/Article.xsd"> <title>foo</title> <body>bar</body> </Article>

*Stylesheet*
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
               xmlns:art="/type/Article.xsd"
               version="1.0">
   <xsl:template match="art:Article">Matched!</xsl:template>
</xsl:stylesheet>



--
Kim Thrysøe
kt@xxxxxxxx
22 48 61 54
96 35 61 00



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.