XSL-FO Validation Error
Posted: Wed Nov 26, 2003 7:41 pm
The .fo file listed below works when processed by apache's fop-0.20.5, and produces the expected page, with no error messages.
However, oxygen 2.x on eclipse produces the following error on an attempt to validate the file, with the error icon positioned at the root element.
cvc-elt.1: Cannot find the declaration of element 'root'.
==================
<?xml version="1.0" encoding="utf-8"?>
<root xmlns="http://www.w3.org/1999/XSL/Format">
<layout-master-set>
<simple-page-master margin-bottom="1.0in" margin-left="1.0in" margin-right="1.0in"
margin-top="l.0in" master-name="simple" page-height="11.0in" page-width="8.0in">
<region-body margin-top="1.0in"/>
<region-before extent="1.0in"/>
<region-after extent="0.6in"/>
</simple-page-master>
</layout-master-set>
<page-sequence master-reference="simple">
<flow flow-name="xsl-region-body">
<block font-size="12pt" line-height="15pt">
<block>A Brief History</block>
<block>Of</block>
<block>Thyme</block>
</block>
</flow>
</page-sequence>
</root>
==================
Specifying a namespace prefix in line 2 (xmlns:fo=http....), instead of making format the default namespace, does not prevent the validation error.
Although I dont suspect a file coding error on my part, given that the file produces the expected output when processed by the downloaded-from-apache fop, have I missed something ? Where is the diagnostic coming from ?
Bill.
However, oxygen 2.x on eclipse produces the following error on an attempt to validate the file, with the error icon positioned at the root element.
cvc-elt.1: Cannot find the declaration of element 'root'.
==================
<?xml version="1.0" encoding="utf-8"?>
<root xmlns="http://www.w3.org/1999/XSL/Format">
<layout-master-set>
<simple-page-master margin-bottom="1.0in" margin-left="1.0in" margin-right="1.0in"
margin-top="l.0in" master-name="simple" page-height="11.0in" page-width="8.0in">
<region-body margin-top="1.0in"/>
<region-before extent="1.0in"/>
<region-after extent="0.6in"/>
</simple-page-master>
</layout-master-set>
<page-sequence master-reference="simple">
<flow flow-name="xsl-region-body">
<block font-size="12pt" line-height="15pt">
<block>A Brief History</block>
<block>Of</block>
<block>Thyme</block>
</block>
</flow>
</page-sequence>
</root>
==================
Specifying a namespace prefix in line 2 (xmlns:fo=http....), instead of making format the default namespace, does not prevent the validation error.
Although I dont suspect a file coding error on my part, given that the file produces the expected output when processed by the downloaded-from-apache fop, have I missed something ? Where is the diagnostic coming from ?
Bill.