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
Postnext
Dan VintSubject: Wierd bug with namespaces
Author: Dan Vint
Date: 28 Mar 2005 07:04 PM
I've attached a sample data file and the stylesheet to go with it. When run in Studio I get this result:

<?xml version='1.0' encoding='UTF-8' ?>

<!--
This is the ACORD P&C Business Message specification's Schema.
This file is based upon:

Version: 0.1.0 draft of the specification
Generated on: 2005-03-25


COPYRIGHT NOTICE:

© 2001-2005 ACORD. All Rights Reserved.

Use of this Schema and its documentation are covered by the terms and conditions file that was included in the distribution file that you found this Schema.
http://www.ACORD.org
--><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:attribute name="elementFormDefault" namespace="http://www.w3.org/2001/XMLSchema"></xsd:attribute>
<xsd:attribute name="attributeFormDefault"></xsd:attribute>
</xsd:schema>

When run with Saxon at the command line I get:


<?xml version="1.0" encoding="UTF-8"?><!--
This is the ACORD P&C Business Message specification's Schema.
This file is based upon:

Version: 0.1.0 draft of the specification
Generated on: 2005-03-25


COPYRIGHT NOTICE:

&#9516;&#8976; 2001-2005 ACORD. All Rights Reserved.



Use of this Schema and its documentation are covered by
the terms and conditions file that was included in the distribution file that yo
u found this Schema.
http://www.ACORD.org


-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsd:elementFormDefault=
"" attributeFormDefault=""/>

**********

Notice how Studio has changed the <xsl:attribute element to xsd:attribute, but saxon
adds it to the <schema> element properly in the second example.

..dan


Documentacord-metadata.dtd


DocumentMetaData-SampleStream-1.xml


DocumentschemaGen.xslt

Posttop
Ivan PedruzziSubject: Wierd bug with namespaces
Author: Ivan Pedruzzi
Date: 01 Apr 2005 06:35 PM
Dan,

This is indeed a bug in the Stylus Studio XSLT processor.
You can easily get around moving the namespace definiton from the schema element to stylesheet root

Thank You for reporting this.
Ivan

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