XML Schema Generation and <!DOCTYPE>-statements: How to? [message #17267] |
Thu, 10 April 2003 17:29 |
Eclipse User |
|
|
|
Originally posted by: dirk.schesmer.divos.de
Hi all,
I'd like to know whether XSD can handle the <!DOCTYPE portions (being
optional, but still in heavy use) specified in the header part of an
XSD-file, as well. I did not find an API for it.
You see, e.g. XMLSchema.xsd until recently contained something like:
<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN"
"XMLSchema.dtd" [
<!-- provide ID type information even for parsers which only read the
internal subset -->
and the document world is still governed by DTDs...
Thanks, Dirk V. Schesmer
|
|
|
Re: XML Schema Generation and <!DOCTYPE>-statements: How to? [message #17366 is a reply to message #17267] |
Thu, 10 April 2003 18:24 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Dirk,
Sometimes these DOCTYPE things will require loading DTDs that are "hard
to find", so it may fail because of that. There is nothing in the XSD
model to access DOCTYPE information, but it will be available in the
underlying DOM (i.e., xsdSchema.getDocument()).
"Dirk V. Schesmer" wrote:
> Hi all,
>
> I'd like to know whether XSD can handle the <!DOCTYPE portions (being
> optional, but still in heavy use) specified in the header part of an
> XSD-file, as well. I did not find an API for it.
>
> You see, e.g. XMLSchema.xsd until recently contained something like:
> <!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN"
> "XMLSchema.dtd" [
> <!-- provide ID type information even for parsers which only read the
> internal subset -->
>
> and the document world is still governed by DTDs...
>
> Thanks, Dirk V. Schesmer
|
|
|
Re: XML Schema Generation and <!DOCTYPE>-statements: How to? [message #567611 is a reply to message #17267] |
Thu, 10 April 2003 18:24 |
Ed Merks Messages: 33216 Registered: July 2009 |
Senior Member |
|
|
Dirk,
Sometimes these DOCTYPE things will require loading DTDs that are "hard
to find", so it may fail because of that. There is nothing in the XSD
model to access DOCTYPE information, but it will be available in the
underlying DOM (i.e., xsdSchema.getDocument()).
"Dirk V. Schesmer" wrote:
> Hi all,
>
> I'd like to know whether XSD can handle the <!DOCTYPE portions (being
> optional, but still in heavy use) specified in the header part of an
> XSD-file, as well. I did not find an API for it.
>
> You see, e.g. XMLSchema.xsd until recently contained something like:
> <!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN"
> "XMLSchema.dtd" [
> <!-- provide ID type information even for parsers which only read the
> internal subset -->
>
> and the document world is still governed by DTDs...
>
> Thanks, Dirk V. Schesmer
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.05400 seconds