Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Exporting a part of an XSD

Reply
Thread Tools

Exporting a part of an XSD

 
 
Mhaxx
Guest
Posts: n/a
 
      07-29-2004
I'd like to export my XML data type definitions into a separate file, so
I can use them from other XSD: how can I do?

Mhaxx


<<<example.xsd>>>

<?xml version="1.0" encoding="iso-8859-1"?>

<xsd:schema xmlnssd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.com"
xmlns="http://www.example.com"
elementFormDefault="qualified">


<!-- * * * * * DATA TYPES DEFINITION * * * * * -->

<xsd:complexType name="pointType">
<xsd:sequence>
<xsd:element name="x" type="xsd:nonNegativeInteger"/>
<xsd:element name="y" type="xsd:nonNegativeInteger"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="extensionType">
<xsd:sequence>
<xsd:element name="height" type="xsdositiveInteger"/>
<xsd:element name="width" type="xsdositiveInteger"/>
</xsd:sequence>
</xsd:complexType>


<!-- * * * * * * SCHEMA DEFINITION * * * * * * -->

<xsd:element name="project">
<xsd:complexType>
...
...
</xsd:complexType>
</xsd:element>

</xsd:schema>
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      07-29-2004


Mhaxx wrote:

> I'd like to export my XML data type definitions into a separate file, so
> I can use them from other XSD: how can I do?


Check out <xs:include>, see
http://www.w3.org/TR/xmlschema-0/#SchemaInMultDocs
http://www.w3.org/TR/xmlschema-1/#element-include

--

Martin Honnen
http://JavaScript.FAQTs.com/

 
Reply With Quote
 
 
 
 
Mhaxx
Guest
Posts: n/a
 
      07-29-2004
> Check out <xs:include>, see
> http://www.w3.org/TR/xmlschema-0/#SchemaInMultDocs
> http://www.w3.org/TR/xmlschema-1/#element-include


Good, but Pollo seems not to load include xsd. What about Pollo to
validate XSD? Others good XML validator?

Mhaxx
 
Reply With Quote
 
Martin Honnen
Guest
Posts: n/a
 
      07-30-2004


Mhaxx wrote:

>> Check out <xs:include>, see
>> http://www.w3.org/TR/xmlschema-0/#SchemaInMultDocs
>> http://www.w3.org/TR/xmlschema-1/#element-include

>
>
> Good, but Pollo seems not to load include xsd. What about Pollo to
> validate XSD? Others good XML validator?


I don't know Pollo, I use Java Xerces as available in the jEdit editor
(http://www.jedit.org/) and MSXML 4 from Microsoft and occasionally MS
..NET ValidatingReader.

--

Martin Honnen
http://JavaScript.FAQTs.com/

 
Reply With Quote
 
Mhaxx
Guest
Posts: n/a
 
      07-30-2004
> I don't know Pollo, I use Java Xerces as available in the jEdit editor

Can I use it as XML validator, too?

Mhaxx
 
Reply With Quote
 
Martin Honnen
Guest
Posts: n/a
 
      07-30-2004


Mhaxx wrote:

>> I use Java Xerces as available in the jEdit editor

>
>
> Can I use it as XML validator, too?


If you install the XML plugins available then jEdit validates against
DTDs and W3C XML schemas.

--

Martin Honnen
http://JavaScript.FAQTs.com/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XML + XSD: Is it possible to get all errors against the XSD? Markus Java 1 11-22-2005 02:53 PM
Difference between <import ....xsd> and <xlink:href=.....xsd> ???? Bernd Oninger XML 1 06-30-2004 08:21 AM
xsd:any as a child of xsd:all Peter Aberline XML 0 04-05-2004 03:38 PM
referencing another XSD file within an XSD file JavaDeveloper@nowhere.com XML 1 01-14-2004 05:22 PM
XSD document for XSD defintion Rick Razzano XML 1 09-26-2003 12:41 AM



Advertisments