Exporting a part of an XSD

Discussion in 'XML' started by Mhaxx, Jul 29, 2004.

  1. Mhaxx

    Mhaxx Guest

    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 xmlns:xsd="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="xsd:positiveInteger"/>
    <xsd:element name="width" type="xsd:positiveInteger"/>
    </xsd:sequence>
    </xsd:complexType>


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

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

    </xsd:schema>
    Mhaxx, Jul 29, 2004
    #1
    1. Advertising

  2. Martin Honnen, Jul 29, 2004
    #2
    1. Advertising

  3. Mhaxx

    Mhaxx Guest

    Mhaxx, Jul 29, 2004
    #3
  4. Martin Honnen, Jul 30, 2004
    #4
  5. Mhaxx

    Mhaxx Guest

    > I don't know Pollo, I use Java Xerces as available in the jEdit editor

    Can I use it as XML validator, too?

    Mhaxx
    Mhaxx, Jul 30, 2004
    #5
  6. 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/
    Martin Honnen, Jul 30, 2004
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Markus
    Replies:
    1
    Views:
    1,080
    Markus
    Nov 22, 2005
  2. Rick Razzano

    XSD document for XSD defintion

    Rick Razzano, Sep 26, 2003, in forum: XML
    Replies:
    1
    Views:
    468
    C. M. Sperberg-McQueen
    Sep 26, 2003
  3. Replies:
    1
    Views:
    848
    Martin Honnen
    Jan 14, 2004
  4. Peter Aberline

    xsd:any as a child of xsd:all

    Peter Aberline, Apr 5, 2004, in forum: XML
    Replies:
    0
    Views:
    775
    Peter Aberline
    Apr 5, 2004
  5. Bernd Oninger
    Replies:
    1
    Views:
    515
    Henry S. Thompson
    Jun 30, 2004
Loading...

Share This Page