Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dtd and Schema reference 1

Status
Not open for further replies.

papaya81

Programmer
Jan 29, 2009
3
LU
Hi,
I have a doubt concerning the correspondance between reference to a Dtd and to an XML Schema. In the doctype declaration you can use the keyword SYSTEM or PUBLIC. How is this handled in the Schema?Is the following correspondance true:

SYSTEM --> xsi:noNamespaceSchemaLocation
PUBLIC --> xsi:schemaLocation

Or the 2 xsi depend only on the existence of the target namespace?

Thanks for help

Domi
 
>SYSTEM --> xsi:noNamespaceSchemaLocation
>PUBLIC --> xsi:schemaLocation
This correspondance is of no meaning. It is a wrong line of reasoning. There is no truth in it, so don't mislead yourself.

>Or the 2 xsi depend only on the existence of the target namespace?
That's about right. If there is any nuance to make, it does not come up to my mind rightaway.
 
Thank you for this answer. But how do you handle PUBLIC and SYSTEM keyword in Schemas?
 
>how do you handle PUBLIC and SYSTEM keyword in Schemas?
One does not need to handle it in any special way. If the schema documents are located in a publicly accessible url, it would be about PUBLIC. If the schemas are located in your local file system or private network, it would be about SYSTEM.

But, in any case, the value of those attributes are _not_ the ultimate decree. They are only suggestive. They can be override by the application.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top