|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] default namespace in xsl and xpath expressions
Dear all, There's something I haven't understood quite (warning: this is a namespace newbie question), so I'm calling for a patient list member to answer the following question: I have an xml document with an schema and a xsl style sheet. Of course any Xpath expressions will not yield the result I wanted if I don't add the namespace qualifier. [Example: document looks like ... <document xmlns="mynamespace"> ..., Xpath expression tries to select "/document" and returns no nodes] But why doesn't it work when I set the default namespace to the document's namespace and try to use Xpath expressions in XSL without namespace qualifiers? [Example: document looks like ... <document xmlns="mynamespace"> ..., XSL looks like ... <xsl:template match="/" xmlns="mynamespace"> and Xpath expression is the same as above] Thanks for all answers, Stefan
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








