Re: [xslt] validation of a doc

 John Fleck <> é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.

test.xml:4: validity error: Element book content does not follow the DTD
Expecting ((heading , p?) , sect*), got (heading p p )


Philippe Batailler
in girum imus nocte et consumimur igni
<?xml version="1.0" ?>
<!DOCTYPE essai SYSTEM "test.dtd">
<!ENTITY % paras "(p+)">
<!ENTITY % sect "heading,(%paras;)?">

<!ELEMENT essai (book)>
<!ELEMENT book ((%sect;) , sect*)>

<!ELEMENT heading (#PCDATA)>
<!ELEMENT sect (%sect;)>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]