httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Abele <>
Subject Re: Issues with XML / XSLT stuff
Date Sun, 28 Jul 2002 10:49:11 GMT
> Von: Joshua Slive <>
> Datum: Sat, 27 Jul 2002 08:13:24 -0700 (PDT)
> Betreff: RE: Issues with XML / XSLT stuff
> On Sat, 27 Jul 2002, Joshua Slive wrote:
>>> Can you tell I haven't been properly validating my xml ;-)
> What would be optimal is if we could get Ant/Xalan to validate as part of
> the transformation process, but I can't figure out how to make that
> happen.

Hi Joshua !

The xml files could easily be validated with a few changes to the build.xml
file. Just insert a new target and let the xslt-target depend on it. For

<target name="validate"
    description="Validate the XML source files">

    <!-- Validate the root directory of the manual -->
    <xmlvalidate lenient="false" failonerror="false" warn="true">
        <fileset dir="../"
                 includes="*.xml *.xml.ja"/>

    <!-- Validate the mod directory (.en + .ja) -->
    <xmlvalidate lenient="false" failonerror="false" warn="true">
        <fileset dir="../mod/"
                 includes="*.xml *.xml.ja"/>

If you're using the ant logging capabilities there will be a nice output
(even in xml). So the results of the validation/trasformation can be easily
controlled. For example call ant with the following parameters (in

ant -logger \
    -verbose \
    -logfile buildlog.xml \

(this stylesheet can be found in path_to/ant/etc/log.xsl; just copy to

For transforming the resulting logfile to html, you could use the following

java org.apache.xalan.xslt.Process -IN buildlog.xml \
                                    -OUT buildlog.html

If appreciated I could prepare a complete build-environment for the
validation/transformation/logging - proccess...just let me know if it would
help you.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message