So after solving my last embarrassing problem, I've another that will probably 
be just as embarrassing.

My source files contain a large number of XInclude statements for 
organization.  Again, the last time I was working on this project they were 
all functional.  However, when I run the build script I now get the following 
error on each XInclude statement:

Element include in namespace 'http://www.w3.org/2003/XInclude' encountered in 
part, but no template matches.

That to me sounds like the XInclude statements are just not being parsed, so 
the XSLT scripts are hitting them and shrugging.  

My build target reads as follows:

<target name="html.tm" depends="init, html.titlepage">
  <java classname="${xslt.processor.class}" fork="yes" failonerror="true">
    <classpath refid="xslt.processor.classpath" />
    <jvmarg 
value="-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
    <jvmarg 
value="-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
    <jvmarg 
value="-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration"/>
    <arg line="-x ${resolving.reader.class}"/>
    <arg line="-y ${resolving.reader.class}"/>
    <arg line="-r ${catalog.resolver.class}"/>
    <arg line="-u"/>
    <arg line="${source.dir}/tm/book.xml"/>
    <arg line="${xslHtmlTm}" />
    <arg line="base.dir=${build.dir}/" />
  </java>
</target>


With the related properties defined thusly:

<property name="xslt.processor.class" value="com.icl.saxon.StyleSheet" />
<property name="xi.resolver.class" 
value="com.elharo.xml.xinclude.SAXXIncluder" />
<property name="catalog.resolver.class" 
value="org.apache.xml.resolver.tools.CatalogResolver" />
<property name="resolving.reader.class" 
value="org.apache.xml.resolver.tools.ResolvingXMLReader" />

I am getting no Java errors, so it doesn't sound like another classpath issue.  
What am I doing wrong this time? :-)

-- 
Larry Garfield
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to