so the best way...">

Best way to check xml link?

I have many links in my xml files, for example:

<name id="key1"></name> 
<ref to="key1"></ref>

so the best way to check ref / @ to is defined in the name / @ id.

Xsd? DTD? or programming using XPATH?

+3
source share
2 answers

The XML-schema : , , , - see. The this example. ID IDREF IDREFS xs:key

In XPath : a function. id()

In XSLT : and . <xsl:key> key()

+2
source

Xml IDREF. . , xml, xml . XSLT/XPath.

0

Source: https://habr.com/ru/post/1782153/


All Articles