469,282 Members | 2,045 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

IDREF to external file

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
Jul 20 '05 #1
2 2031
"Neil Zanella" <nz******@cs.mun.ca> wrote in message
news:b6*************************@posting.google.co m...
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
Jul 20 '05 #2
On 6 Nov 2004 17:22:21 -0800, nz******@cs.mun.ca (Neil Zanella) wrote:
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.

--
Smert' spamionam
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Lars | last post: by
2 posts views Thread by Nicolas Bouillon | last post: by
2 posts views Thread by maxwell | last post: by
2 posts views Thread by Luigi | last post: by
Dormilich
4 posts views Thread by Dormilich | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.