[ xframe-Bugs-924041 ] XS vs XSD prefix link difference

"SourceForge.net" <[email protected]>
Newsgroups gmane.text.xml.xframe.xsddoc
Message-ID <[email protected]>
Bugs item #924041, was opened at 2004-03-26 09:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=454391&aid=924041&group_id=48863

Category: win32
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Kurt Riede (kriede)
Summary: XS vs XSD prefix link difference

Initial Comment:

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>



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=454391&aid=924041&group_id=48863


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.