Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Schema validation problem
Schema validation problem [message #68454] Tue, 27 June 2006 06:13 Go to next message
Eclipse UserFriend
Originally posted by: An.nym.us

Hi I have a questoin concerning XSD Schemas in XML:

I have some > 30 XML files, that use a specified XSD for validation.

This XSD is specified with relative pathname.

I the lifetime of the XML and the corresponding XSD they change location

1. Source Control System : Split into various modules and generic base
files.
2. CD (Deployment) : Some of the modules and configuration
variations of speciel modules.
3. Installtain (HDD) : One conffiguration with some defined modules,
all in the correct location.


As the XSD Path is specified as relative path in the XML this means I can
only validate the XML after installation, which is not very good.

Can somebody suggest me alteratives / ideas what features of XML / XSD to
use to validate in each process. With alternating XSD locations ?

Could a approch of a namespace help us ?

Thanks for hints.

--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
Re: Schema validation problem [message #68519 is a reply to message #68454] Tue, 27 June 2006 19:21 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Sascha,

Are you saying the XML files using xsi:schemaLocation to refer to the
XSD with a relative path? In the WTP (Web Tools) project they have the
notion of an XML catalog that lets you specify that a particular target
namespace corresponds to a particular physical schema location. With
this approach, you wouldn't need an xsi:schemaLocation...


Sascha wrote:

> Hi I have a questoin concerning XSD Schemas in XML:
>
> I have some > 30 XML files, that use a specified XSD for validation.
>
> This XSD is specified with relative pathname.
>
> I the lifetime of the XML and the corresponding XSD they change location
>
> 1. Source Control System : Split into various modules and generic
> base files.
> 2. CD (Deployment) : Some of the modules and configuration
> variations of speciel modules.
> 3. Installtain (HDD) : One conffiguration with some defined
> modules, all in the correct location.
>
>
> As the XSD Path is specified as relative path in the XML this means I
> can only validate the XML after installation, which is not very good.
>
> Can somebody suggest me alteratives / ideas what features of XML / XSD
> to use to validate in each process. With alternating XSD locations ?
>
> Could a approch of a namespace help us ?
>
> Thanks for hints.
>
Re: Schema validation problem [message #598302 is a reply to message #68454] Tue, 27 June 2006 19:21 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26285
Registered: July 2009
Senior Member
Sascha,

Are you saying the XML files using xsi:schemaLocation to refer to the
XSD with a relative path? In the WTP (Web Tools) project they have the
notion of an XML catalog that lets you specify that a particular target
namespace corresponds to a particular physical schema location. With
this approach, you wouldn't need an xsi:schemaLocation...


Sascha wrote:

> Hi I have a questoin concerning XSD Schemas in XML:
>
> I have some > 30 XML files, that use a specified XSD for validation.
>
> This XSD is specified with relative pathname.
>
> I the lifetime of the XML and the corresponding XSD they change location
>
> 1. Source Control System : Split into various modules and generic
> base files.
> 2. CD (Deployment) : Some of the modules and configuration
> variations of speciel modules.
> 3. Installtain (HDD) : One conffiguration with some defined
> modules, all in the correct location.
>
>
> As the XSD Path is specified as relative path in the XML this means I
> can only validate the XML after installation, which is not very good.
>
> Can somebody suggest me alteratives / ideas what features of XML / XSD
> to use to validate in each process. With alternating XSD locations ?
>
> Could a approch of a namespace help us ?
>
> Thanks for hints.
>
Previous Topic:model editor appearance customization
Next Topic:Schema - Versoin Control
Goto Forum:
  


Current Time: Sat Dec 20 21:40:33 GMT 2014

Powered by FUDForum. Page generated in 0.09883 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software