XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Dan VintSubject: Stylus and default namespaces (BUG) - repeat
Author: Dan Vint
Date: 02 May 2000 05:43 PM
Let's try this again with the HTML turned off!

I've come across an interesting problem in Stylus/XT. I'm trying to process the schema from the schema spec with XT and generate some HTML documentation. This schema has the following top element:


Note the default namespace => xmlns="http://www.w3.org/1999/XMLSchema" 

My style sheet as follows:






produces no output in XT but does in Stylus. I've declared the same document namespace in the stylesheet as appears in the document, but it doesn't seem to apply to the elements in the template match statement that follows in XT.

If I provide a prefix as follows:






I then get the output of the word "test" as would be expected from XT.

Now the previous version of the stylesheet works with eXcelon's Stylus product and it seems to be supporting namespaces because it complains if it sees a prefix that hasn't been defined.

from xslt spec section 4. Expressions:

the set of namespace declarations are those in scope on the element which has the attribute in which the expression occurs; this includes the implicit declaration of the prefix xml required by the the XML Namespaces Recommendation [XML Names]; the default namespace (as declared by xmlns) is not part of this set

The last piece/clause seems to be where the difference between the two processors comes into play with XT being correct.



Dan Vint                 Lexica LLC
Sr XML Analyst          (415)901-3623

Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.