Hello,

2 or 3 weeks ago there was a discussion on this mailing list about the
relative paths in an <include>-statement. Somebody has had problems with
putting the schema in an extra folder, e.g.

> example.xml
> xsd/ML.xsd
> xsd/ML_primitive.xsd

The schemaLocation contains the relative path "xsd/ML.xsd". Usually the
<include>-statement in the schema should be
<include schemaLocation="ML_primitive.xsd">
but in the formly discussion somebody said it must be ralitive to the
xml-document, that means
<include schemaLocation="xsd/ML_primitive.xsd"

I can also remember that somebody said that this is the default
behaviour of xerces - looking for included documents from the
"main-document" (here example.xml). The only tipp was to create his own
instance of EntityResolver. But there is also the possibility to include
a dtd into an dtd with parameter entities - and there you use the path
relative to the dtd, e.g.

example.xml
dtd/ML.dtd
dtd/ML_primitive.dtd

in ML.dtd
<!ENTITY % primitive SYSTEM "ML_primitive.dtd"> <!-- not
"dtd/ML_primitive.dtd>

I wondering why this different behaviour between using dtd and schemas.
Can somebody give me a simply answer?

maik

--
* Homepage: www.webis-world.de
* mailto        : [EMAIL PROTECTED]
* ICQ           : #57313947



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to