An idref is used in a Document Type Definition(DTD) or XML Schema Definition(XSD) to bind the ID attribute value of a specified element to a separate attribute of one or more unrelated elements.
Questions tagged [idref]
36 questions
1
vote
2 answers
How is correctly path to use children like reference
I have problem with my path to XML-elements. In XML document I have:

damlit
- 103
- 1
- 6
1
vote
0 answers
IDREF-attribute not connecting with IDs in XML-Document
Validating the following xml-file:

Tommy
- 699
- 4
- 11
- 26
1
vote
1 answer
return referenced elements in XPATH query
suppose I have the following elements:
]>
jon…

sel
- 483
- 5
- 16
1
vote
1 answer
DTD syntax for SQL UNIQUE constraint
I am moving from accessing data via a database to XML for my application specific needs. I am currently writing a DTD for the XML by referring to my SQL table schema. I have defined a constraint on 4 columns to be unique(These 4 columns defines a…

Shripad Bodas
- 11
- 2
1
vote
2 answers
Spring.NET problem with tag in config
According to the help file that comes with the Spring.NET framework, you can inject a dependancy defined in the local file by using an 'idref' tag along with a 'local' attribute.
I have been trying to do this with no success and was hoping someone…
Chris
1
vote
1 answer
xml transform to html using xslt
I'm trying to use key function to transform xml to html look like:
but I don't know how to make two table, because my if function write books one under other.
A XML looks like:
Harry Potter and…

badzz124
- 71
- 1
- 4
1
vote
1 answer
XSLT + XPath: usage of id and id-ref attributes
I have an xsl-fo document having multiple . Every second element has the attribute id="end". When I reference these IDs with ref-id="end", how do I know which element is retrieved? Can I reference the next element…

user1414745
- 1,317
- 6
- 25
- 45
1
vote
0 answers
How to do XML cross referencing?
I'm trying to do element cross reference in XML without success. Here's my schema:

Ricardo
- 1,018
- 2
- 9
- 13
1
vote
2 answers
XSLT: Verify if sibbling nodes have the same IDREF attribute
Good afternoon.
I'm fairly new to XML, XSD and XSLT and i'm facing the following issue:
I have the following substructure in XSD, that can occur multiple times, which is part of a far larger structure which is irrelevant and i won't include for the…

ricol070
- 492
- 2
- 11
1
vote
0 answers
Difference between using ID+IDREF and direct Type in XML Schema?
I am new to XSD and have a question about the difference between the following two schemas?
1) Direct use of IDREF and ID to limit the selection to another element within the file:
…

reza
- 1,188
- 3
- 17
- 32
1
vote
2 answers
XML DTD's ID and IDREF pointers
I am getting an error that i cant seem to find much documentation on.
this is a snippet of the XML.
Linguistics

legendary_rob
- 12,792
- 11
- 56
- 102
0
votes
1 answer
How can I connect the content using ID/IDref on xslt?
I have a xml document in which i have used IDs and IDREFs in the hope that they could be connected in xlst using xpath, but I haven't been able to find a solution as to how.
My xml goes like this:
-
…
0
votes
1 answer
Copy value of node using reference into other node
I'm trying to copy the value of an XML node referenced by an identifier into another node of the graph.
The orignal file looks like this:
…

Pick
- 55
- 4
0
votes
1 answer
how to find xml node by idref in powershell
for example, I have simple xml
8080
some.value
…

Nikolas
- 2,322
- 9
- 33
- 55
0
votes
0 answers
How to annotate a JAXB element with type IDREFS?
I use JAXB to convert an XML to a Java class. I have two Java classes: Milestone and Issue. Both have a unique ID and the ID fields are annotated with "@XMLID".
One milestone consists of several issues, so that it has a field variable "issues"…

fransie
- 67
- 8