referencing another XSD file within an XSD file

Discussion in 'XML' started by JavaDeveloper@nowhere.com, Jan 14, 2004.

  1. Guest

    Is it possible to reference another XSD file within an XSD file? What I'd
    like to do is have a fairly static XSD file which contains an element whose
    valid values change often reference a 2nd XSD file which specifies the valid
    values for that element. This way I could set up a process that reads the
    valid values for the element from a database and then re-create the 2nd XSD
    file as needed.




    ----- Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web -----
    http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
    NewsOne.Net prohibits users from posting spam. If this or other posts
    made through NewsOne.Net violate posting guidelines, email
     
    , Jan 14, 2004
    #1
    1. Advertising

  2. wrote:

    > Is it possible to reference another XSD file within an XSD file? What I'd
    > like to do is have a fairly static XSD file which contains an element whose
    > valid values change often reference a 2nd XSD file which specifies the valid
    > values for that element. This way I could set up a process that reads the
    > valid values for the element from a database and then re-create the 2nd XSD
    > file as needed.


    I think you want
    <xs:include schemaLocation="include.xsd" />
    see
    http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#element-include

    There is also an import feature you can (and need to) use if you want to
    use elements from a different namespace.
    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Jan 14, 2004
    #2
    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. Mark Friedman

    Referencing subcontrols within UserControl

    Mark Friedman, Jul 9, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    391
    Christopher Young
    Jul 14, 2003
  2. asptodotnet
    Replies:
    1
    Views:
    428
    Daniel Fisher\(lennybacon\)
    Nov 18, 2004
  3. stiank81
    Replies:
    4
    Views:
    15,411
    stiank81
    Jun 26, 2005
  4. Vijay
    Replies:
    5
    Views:
    7,776
    Martin Honnen
    Nov 1, 2005
  5. PeteOlcott
    Replies:
    1
    Views:
    951
    Mukul Gandhi
    Feb 5, 2009
Loading...

Share This Page