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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Posttop
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:

	

	

	

	
	test
	

	

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:

	

	

	

	
	test
	

	

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

************

Dan Vint                 Lexica LLC
Sr XML Analyst          (415)901-3623
                         http://www.lexica.net

   
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!  
go

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.