xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Hennebert <vincent.henneb...@anyware-tech.com>
Subject Re: XSL-FO Schema or DTD?
Date Fri, 22 Feb 2008 10:19:07 GMT

bonekrusher wrote:
> Hi,
> Is there an XSL 1.1 schema or DTD to help validate xsl-fo at authoring
> rather then at transformation?

Not to my knowledge, and anyway a schema wouldn’t be enough to validate 
XSL-FO properly. The problem is that many properties can be inherited 
from higher-level FOs. For example, while border doesn’t apply to 
fo:table-row in the separate border model, you can still specify one and 
make the cells inherit from it:
    <fo:table-row border="1pt solid black">
      <fo:table-cell border="inherit">
        <fo:block>Cell 1</fo:block>
      <fo:table-cell border="inherit">
        <fo:block>Cell 2</fo:block>

A schema would have to allow basically any property on any formatting 
object. In the same time it wouldn’t be able to check that e.g., cells 
in a table are correctly specified (no overlapping cells, correct 
spannings, etc.).

Only an XSL-FO formatter would be able to perform useful validation. 
Unfortunately FOP doesn’t currently provide a validation-only mode. 
I know that XEP provides one, but I don’t know how accurate it is.


Vincent Hennebert                            Anyware Technologies
http://people.apache.org/~vhennebert         http://www.anyware-tech.com
Apache FOP Committer                         FOP Development/Consulting

To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message