質問

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

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top