XSchema references, how does it actually work?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Karl

    XSchema references, how does it actually work?

    Hi!

    I'm having trouble with referencing different schemas. I'm not sure how it's
    supposed to work. When I work on the files, the
    targetNamespace ="www.test.c om/schemas/test.xsd" does not exist for real. I
    get error messages when I import the types to other schemas. If I change to
    a relative path, it works fine. The problem is that I have to remember to
    change all references when I wish to deploy the files. It's error phrone and
    tedious to have to change it all the time. Is there any solutions to this
    problem?

    regards

    Karl Z


  • Henry S. Thompson

    #2
    Re: XSchema references, how does it actually work?

    Most of your problems have been addressed by Priscilla's input, but
    note that neither "www.test.c om/schemas/test.xsd" nor
    "C:\vcs\Source\ Import_export_f ormats\Schemas\ Person.xsd" are usable
    URLs -- you should use e.g.
    "file:///C:/vcs/Source/Import_export_f ormats/Schemas/Person.xsd"

    ht
    --
    Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
    Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
    Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
    URL: http://www.ltg.ed.ac.uk/~ht/
    [mail really from me _always_ has this .sig -- mail without it is forged spam]

    Comment

    • Karl

      #3
      Re: XSchema references, how does it actually work?

      I tried that, but it gives me the same error in the schema file "No content
      model available for validation (possible empty DTD/Schema)", when I try to
      save the xml file referencing the schema file.

      "Henry S. Thompson" <ht@inf.ed.ac.u k> wrote in message
      news:f5bvfiis1n 8.fsf@erasmus.i nf.ed.ac.uk...[color=blue]
      > Most of your problems have been addressed by Priscilla's input, but
      > note that neither "www.test.c om/schemas/test.xsd" nor
      > "C:\vcs\Source\ Import_export_f ormats\Schemas\ Person.xsd" are usable
      > URLs -- you should use e.g.
      > "file:///C:/vcs/Source/Import_export_f ormats/Schemas/Person.xsd"
      >
      > ht
      > --
      > Henry S. Thompson, HCRC Language Technology Group, University of[/color]
      Edinburgh[color=blue]
      > Half-time member of W3C Team
      > 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
      > Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
      > URL: http://www.ltg.ed.ac.uk/~ht/
      > [mail really from me _always_ has this .sig -- mail without it is forged[/color]
      spam]


      Comment

      • Karl

        #4
        Re: XSchema references, how does it actually work?

        I tried that, but it gives me the same error in the schema file "No content
        model available for validation (possible empty DTD/Schema)", when I try to
        save the xml file referencing the schema file.

        "Henry S. Thompson" <ht@inf.ed.ac.u k> wrote in message
        news:f5bvfiis1n 8.fsf@erasmus.i nf.ed.ac.uk...[color=blue]
        > Most of your problems have been addressed by Priscilla's input, but
        > note that neither "www.test.c om/schemas/test.xsd" nor
        > "C:\vcs\Source\ Import_export_f ormats\Schemas\ Person.xsd" are usable
        > URLs -- you should use e.g.
        > "file:///C:/vcs/Source/Import_export_f ormats/Schemas/Person.xsd"
        >
        > ht
        > --
        > Henry S. Thompson, HCRC Language Technology Group, University of[/color]
        Edinburgh[color=blue]
        > Half-time member of W3C Team
        > 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
        > Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
        > URL: http://www.ltg.ed.ac.uk/~ht/
        > [mail really from me _always_ has this .sig -- mail without it is forged[/color]
        spam]



        Comment

        Working...