472,328 Members | 2,200 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

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 2122
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Lars | last post by:
Hi all, I suspect this may be a bug in XMLSpy, since IE seems to validate this XML successfully. Maybe someone here has run into this and can tell...
2
by: Nicolas Bouillon | last post by:
Hi I am writing a schema and i want to have an element's attribute, which is an IDREF to an other type of element. For example <Type1...
2
by: VernonR | last post by:
I'm having problems getting the .NET 1.1 XSL transform to cross reference using ID / IDREF correctly. I have collapsed to a simple set of files to...
2
by: jacquesh | last post by:
HI all I'm looking for different ways to using idref with more than one XML file ?? My case :: 2 xml files {labo.xml, contact.xml} I...
3
by: Eric Lilja | last post by:
Sorry for asking so many questions, but I've just started and need to get some things working so I can do the task that is before me. Consider...
2
by: maxwell | last post by:
I'm trying to write a schema, and test it by running an xml file of test data based on that schema through xmllint. I'm having a problem, because...
1
by: stran | last post by:
I'm trying to create a simple type that holds two different types. The first is IDREF and the second is an enumeration of string. When I generate a...
2
by: Luigi | last post by:
Hello! I'm writing a schema where an element has got a reference to another element via IDREF. The problem is that I would restrict the possible...
4
Dormilich
by: Dormilich | last post by:
Hello, I'm back with a problem, where I need help with starting. I got an XML file that contains a number of elements with IDREF type attributes:...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.