나는이을 Docbook 5.0 문서가 유효하지 않은 이유를 궁금해 오전는 :, 링크/LINKEND
가$ xmlstarlet val --err --xsd /usr/share/xml/docbook/schema/xsd/5.0/docbook.xsd test.xml
test.xml:3.22: Element '{http://docbook.org/ns/docbook}section', attribute '{http://www.w3.org/XML/1998/namespace}id': '' is not a valid value of the atomic type 'xs:ID'.
test.xml:6.25: Element '{http://docbook.org/ns/docbook}link', attribute 'linkend': '' is not a valid value of the atomic type 'xs:IDREF'.
test.xml - invalid
난 그냥 내부 링크를 원하는 :
여기<?xml version='1.0' encoding='utf-8'?>
<article xmlns='http://docbook.org/ns/docbook' xmlns:xlink='http://www.w3.org/1999/xlink' version='5.0'>
<section xml:id='H_0'>
<title>This is a title</title>
<para>
Blah <link linkend='H_0'>This is a link</link>blah blah blah.</para>
</section>
</article>
내가 xmlstarlet
에서 무엇을 얻을 문서, 섹션.
추가 : 다른 도구가 파일을 행복하게 처리 할 수 있으므로 xmlstarlet 문제 일 수 있습니다. 어쨌든 누군가가 문제를 설명 할 수 있다면 기쁠 것입니다.
고맙습니다. 'xmlstarlet --version '은 실제로 빈 줄을 출력하지만, libxml 2.9.2와 libxslt 1.1.28은 Ubuntu를 사용하고 있습니다. –
이상한. libxml2 버전의 버그 일 수도 있습니다. – sideshowbarker
또한'info '는 Docbook의 확실한 가이드에서 언급되지 않았습니까? –