Donate Share

xframe

Tracker: Bugs

5 XS vs XSD prefix link difference - ID: 924041
Last Update: Comment added ( kriede )


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


Comments ( 2 )




Date: 2004-04-01 15:31
Sender: kriedeProject AdminAccepting Donations

Logged In: YES
user_id=484961

fixed.


Date: 2004-03-26 17:10
Sender: nobody

Logged In: NO

Oh yeah. The missing link should be in the "Source" section
of the generated doc for test5Type.


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Open 2004-04-01 15:31 kriede
resolution_id None 2004-04-01 15:31 kriede
category_id win32 2004-04-01 15:31 kriede
artifact_group_id None 2004-04-01 15:31 kriede
close_date - 2004-04-01 15:31 kriede