OS: WinXP
xsddoc-version 0.3-alpha
Default xslt transformer that ships with j2sdk1.4.1_02
The following does not create a link from
base="st:included1" found in test5Type to the include1
type.
# stress.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
targetNamespace="http://xframe.sf.net/sample/stress"
xmlns:st="http://xframe.sf.net/sample/stress"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="included1.xsd"/>
<xsd:simpleType name="test5Type">
<xsd:annotation>
<xsd:documentation>type restricts type from
included schema</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="st:included1">
<xsd:maxLength value="64"/>
<xsd:whiteSpace value="replace"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
#include1.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
targetNamespace="http://xframe.sf.net/sample/stress"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:simpleType name="included1">
<xsd:restriction base="xs:string"/>
</xsd:simpleType>
</xsd:schema>
Whereas just by changing the prefix from xsd to xs it
does create a link.
#include1.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
targetNamespace="http://xframe.sf.net/sample/stress"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:simpleType name="included1">
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:schema>
#stress.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
targetNamespace="http://xframe.sf.net/sample/stress"
xmlns:st="http://xframe.sf.net/sample/stress"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="included1.xsd"/>
<xs:simpleType name="test5Type">
<xs:annotation>
<xs:documentation>type restricts type from
included schema</xs:documentation>
</xs:annotation>
<xs:restriction base="st:included1">
<xs:maxLength value="64"/>
<xs:whiteSpace value="replace"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
Nobody/Anonymous ( nobody ) - 2004-03-26 17:01
5
Closed
Fixed
Kurt Riede
all platforms
alpha
Public
|
Date: 2004-04-01 15:31 Logged In: YES |
|
Date: 2004-03-26 17:10 Logged In: NO |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use