문제

I wish to link an xml document to its Relax NG description document, using the xml-model tag as specified in its W3C draft.

<?xml-model href="" type="" schematypens="" charset="" title="" group="" phase="" ?>

Do you have a full example to show how to use it? Are there validator tools that understand the xml-model tag?

EDIT: I saw the example here Suggested use of schematypens. I guess the only question remaining is which tools use xml-model.

도움이 되었습니까?

해결책

The example given in the spec is enough for RELAX NG:

<?xml-model href="http://www.docbook.org/xml/5.0/rng/docbook.rng" schematypens="http://relaxng.org/ns/structure/1.0"?>

Or, if you are using the compact syntax:

<?xml-model href="whatever.rnc" type="application/relax-ng-compact-syntax"?>

oXygen XML does support this specification.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top