Re: [xslt] validation of a doc
- From: philippe batailler free fr (Philippe Batailler)
- To: xslt gnome org
- Subject: Re: [xslt] validation of a doc
- Date: Sun, 4 May 2003 22:20:55 +0200
John Fleck <jfleck@inkstain.net> écrivait :
«
« It's impossible to tell without seeing the document in question. The most useful
« thing would be to isolate the problem with a minimal test case that exhibits
« the behavior.
I attach text.xml and test.dtd.
xmllint:
test.xml:4: validity error: Element book content does not follow the DTD
Expecting ((heading , p?) , sect*), got (heading p p )
</book>
Thanks,
--
Philippe Batailler
in girum imus nocte et consumimur igni
<?xml version="1.0" ?>
<!DOCTYPE essai SYSTEM "test.dtd">
<essai>
<book>
<heading>titre</heading>
<p>blabla</p>
<p>blabla</p>
</book>
</essai>
<!ENTITY % paras "(p+)">
<!ENTITY % sect "heading,(%paras;)?">
<!ELEMENT essai (book)>
<!ELEMENT book ((%sect;) , sect*)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT p (#PCDATA)>
<!ELEMENT sect (%sect;)>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]