次のファイルが与えられた
a.rnc:
start = a
a = element a { b }
b = element b {
attribute xml:id { xsd:ID }?,
attribute xml:base { xsd:ID }?,
empty
}
a.xml:
<a xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="b.xml" xpointer="element(bid)"/>
</a>
b.xml:
<a><b xml:id="bid"/></a>
Jingが報告するのはなぜですか
a.xml:1:97: warning: Include operation failed, reverting to fallback. Resource error reading file as XML (href='b.xml'). Reason: XPointer resolution unsuccessful.
a.xml:1:97: fatal: An 'include' failed, and no 'fallback' element was found.
として実行するとき
java -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration -jar jing.jar -c a.rnc a.xml
?
xpointer属性を変更するelement(/1/1)
と合格します。
これは、jing.jarと同じディレクトリにあるxercesImpl.jarを使用したJingの20091111の場合です。