forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Xinclude and (in)validation
Date Wed, 05 Feb 2003 23:45:54 GMT

The "Developing with Avalon" docs use XInclude to add author 
information, by taking it from a common author dir.

Example:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1//EN"
                          "docbookx.dtd">

<chapter xmlns:xi="http://www.w3.org/2001/XInclude"
          xml:base="context://content/xdocs/developing/">
   <chapterinfo>
     <authorgroup>
       <xi:xinclude href="../authors/hammant.xml"/>
     </authorgroup>
   </chapterinfo>
... etc

So I thought, "hey, not bad, I could put xinclude in the general doc 
pipeline and have it available to all xml formats".

Then one thing bit me... validation (or so it seems)  :-(

This is what I get:

validate-xdocs:
/jbprojects/ttest/src/documentation/content/xdocs/subdir/conclusion.xml:7:57: 
Attribute "xmlns:xi" must be declared for element type "chapter".
/jbprojects/ttest/src/documentation/content/xdocs/subdir/conclusion.xml:7:57: 
Attribute "xml:base" must be declared for element type "chapter".
/jbprojects/ttest/src/documentation/content/xdocs/subdir/conclusion.xml:10:53: 
Element type "xi:xinclude" must be declared.
/jbprojects/ttest/src/documentation/content/xdocs/subdir/conclusion.xml:11:19: 
The content of element type "authorgroup" must match 
"(author|editor|collab|corpa
uthor|othercredit)+".
/jbprojects/ttest/src/documentation/content/xdocs/subdir/conclusion.xml:31:16: 
The content of element type "footnote" must match 
"(calloutlist|glosslist|itemize
dlist|orderedlist|segmentedlist|simplelist|variablelist|literallayout|programlis
ting|programlistingco|screen|screenco|screenshot|synopsis|cmdsynopsis|funcsynops
is|classsynopsis|fieldsynopsis|constructorsynopsis|destructorsynopsis|methodsyno
psis|formalpara|para|simpara|address|blockquote|graphic|graphicco|mediaobject|me
diaobjectco|informalequation|informalexample|informalfigure|informaltable)+".

BUILD FAILED
file://C:/jbprojects/xml-apache/xml-forrest/build/dist/shbat/forrest.build.xml:774: 
C:\jbprojects\ttest\src\documentation\content\xdocs\subdir\conclusion.xml 
is not a valid XML document.


What should I do now? %-|

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Mime
View raw message