Domanda

I'm looking to validate the xpointers (shorthand) in one xml document, that means that all ids in the referenced document are present.
By standard I mean something already built-in in the XSL transformation engines.

example:

document 1:

<source xpointer="doc2.xml#ID_1" />

document 2:

<object xmlID="ID_1"/>

So far I've seen that there's not much support in that respect from the xslt engines, and most of the implementation has to be done in the stylesheets itself.

Regards Vlax

È stato utile?

Soluzione

XSLT does not directly support validation of XPointers, but you may find Lea Hayes' XPointer Framework for XSLT 2.0 to be helpful.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top