IDREF to external file

Neil Zanella

Usenet Archive
Joined
May 12, 2002
Messages
124
Reaction score
0
Hello,

Is it possible to specify an IDREF to an element to an external file in a DTD? I really need this feature cause that way I can do a good job of validating the XML files I am using.

Thanks,

Neil
 

Keith M. Corbett

Usenet Archive
Joined
Mar 13, 2001
Messages
50
Reaction score
0
Neil Zanella said:
Hello,

Is it possible to specify an IDREF to an element to an external file in a DTD? I really need this feature cause that way I can do a good job of validating the XML files I am using.

If what you want is to validate an XML instance containing IDREF attribute values that refer to ID attribute values in a separate XML instance, then no, that is not permitted by the XML spec. (See "Validity constraint:
IDREF")

You could cause a file containing ID attributes to be included in the XML instance containing IDREF attributes. Depending on file sizes, this may or may not be desirable for reasons such as performance or memory usage.

/kmc
 

Andy Dingley

Usenet Archive
Joined
Feb 23, 2000
Messages
3,303
Reaction score
0
Is it possible to specify an IDREF to an element to an external file in a DTD?

No, look at RDF for examples of the issues that arise from this. It's not an easy problem to solve simply.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,223
Members
248,131
Latest member
Tonypshaw1

Latest Threads

Top