Questions tagged [idref]

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.

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…
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…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/xslt" class="post-tag grid--cell" title="show questions tagged 'xslt'" rel="tag">xslt</a> <a href="../../questions/tagged/idref" class="post-tag grid--cell" title="show questions tagged 'idref'" rel="tag">idref</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 08 '14 at 17:42">asked May 08 '14 at 17:42</time> <a href="../../users/2125217/badzz124" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/2125217.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="badzz124" /> </a> <div class="s-user-card--info"> <a href="../../users/2125217/badzz124" class="s-user-card--link">badzz124</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">71</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badges">1</li> <li class="s-award-bling s-award-bling__bronze" title="4 bronze badges">4</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-22664103"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/22664103/xslt-xpath-usage-of-id-and-id-ref-attributes" class="question-hyperlink">XSLT + XPath: usage of id and id-ref attributes</a></h3> <div class="excerpt">I have an xsl-fo document having multiple <page-sequences>. Every second <page-sequences> 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…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xslt" class="post-tag grid--cell" title="show questions tagged 'xslt'" rel="tag">xslt</a> <a href="../../questions/tagged/xpath" class="post-tag grid--cell" title="show questions tagged 'xpath'" rel="tag">xpath</a> <a href="../../questions/tagged/xsl-fo" class="post-tag grid--cell" title="show questions tagged 'xsl-fo'" rel="tag">xsl-fo</a> <a href="../../questions/tagged/page-numbering" class="post-tag grid--cell" title="show questions tagged 'page-numbering'" rel="tag">page-numbering</a> <a href="../../questions/tagged/idref" class="post-tag grid--cell" title="show questions tagged 'idref'" rel="tag">idref</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 26 '14 at 14:29">asked Mar 26 '14 at 14:29</time> <a href="../../users/1414745/user1414745" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1414745.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user1414745" /> </a> <div class="s-user-card--info"> <a href="../../users/1414745/user1414745" class="s-user-card--link">user1414745</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,317</li> <li class="s-award-bling s-award-bling__gold" title="6 gold badges">6</li> <li class="s-award-bling s-award-bling__silver" title="25 silver badges">25</li> <li class="s-award-bling s-award-bling__bronze" title="45 bronze badges">45</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-20434486"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/20434486/how-to-do-xml-cross-referencing" class="question-hyperlink">How to do XML cross referencing?</a></h3> <div class="excerpt">I'm trying to do element cross reference in XML without success. Here's my schema: <?xml version="1.0"?> <xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:complexType…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/validation" class="post-tag grid--cell" title="show questions tagged 'validation'" rel="tag">validation</a> <a href="../../questions/tagged/xls" class="post-tag grid--cell" title="show questions tagged 'xls'" rel="tag">xls</a> <a href="../../questions/tagged/cross-reference" class="post-tag grid--cell" title="show questions tagged 'cross-reference'" rel="tag">cross-reference</a> <a href="../../questions/tagged/idref" class="post-tag grid--cell" title="show questions tagged 'idref'" rel="tag">idref</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Dec 06 '13 at 22:10">asked Dec 06 '13 at 22:10</time> <a href="../../users/62096/ricardo" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/62096.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Ricardo" /> </a> <div class="s-user-card--info"> <a href="../../users/62096/ricardo" class="s-user-card--link">Ricardo</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,018</li> <li class="s-award-bling s-award-bling__gold" title="2 gold badges">2</li> <li class="s-award-bling s-award-bling__silver" title="9 silver badges">9</li> <li class="s-award-bling s-award-bling__bronze" title="13 bronze badges">13</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-20035502"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/20035502/xslt-verify-if-sibbling-nodes-have-the-same-idref-attribute" class="question-hyperlink">XSLT: Verify if sibbling nodes have the same IDREF attribute</a></h3> <div class="excerpt">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…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/xslt" class="post-tag grid--cell" title="show questions tagged 'xslt'" rel="tag">xslt</a> <a href="../../questions/tagged/xpath" class="post-tag grid--cell" title="show questions tagged 'xpath'" rel="tag">xpath</a> <a href="../../questions/tagged/xsd" class="post-tag grid--cell" title="show questions tagged 'xsd'" rel="tag">xsd</a> <a href="../../questions/tagged/idref" class="post-tag grid--cell" title="show questions tagged 'idref'" rel="tag">idref</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Nov 17 '13 at 20:06">asked Nov 17 '13 at 20:06</time> <a href="../../users/3002418/ricol070" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3002418.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="ricol070" /> </a> <div class="s-user-card--info"> <a href="../../users/3002418/ricol070" class="s-user-card--link">ricol070</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">492</li> <li class="s-award-bling s-award-bling__silver" title="2 silver badges">2</li> <li class="s-award-bling s-award-bling__bronze" title="11 bronze badges">11</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-16071726"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/16071726/difference-between-using-id-idref-and-direct-type-in-xml-schema" class="question-hyperlink">Difference between using ID+IDREF and direct Type in XML Schema?</a></h3> <div class="excerpt">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: <xsd:element name="policy" > <xsd:complexType> <xsd:sequence> …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/xsd" class="post-tag grid--cell" title="show questions tagged 'xsd'" rel="tag">xsd</a> <a href="../../questions/tagged/idref" class="post-tag grid--cell" title="show questions tagged 'idref'" rel="tag">idref</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 17 '13 at 23:01">asked Apr 17 '13 at 23:01</time> <a href="../../users/793677/reza" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/793677.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="reza" /> </a> <div class="s-user-card--info"> <a href="../../users/793677/reza" class="s-user-card--link">reza</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,188</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="17 silver badges">17</li> <li class="s-award-bling s-award-bling__bronze" title="32 bronze badges">32</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-14452731"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/14452731/xml-dtd-s-id-and-idref-pointers" class="question-hyperlink">XML DTD's ID and IDREF pointers</a></h3> <div class="excerpt">I am getting an error that i cant seem to find much documentation on. this is a snippet of the XML. <Department Code="LING" Chair="BL"> <Title>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: file.png
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