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:
© 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
acord-metadata.dtd
MetaData-SampleStream-1.xml
schemaGen.xslt
|