You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by GOMEZ Henri <hg...@slib.fr> on 2002/06/28 09:50:40 UTC

xdocs for jk&jk2 / ant 1.5.1

Hi,

I was playing with xdocs in jk and tried to use it
to generate both jk and jk2.

I choose the following layout :

xdocs/common	(menu.idx, Ajp13.xml)
xdocs/jk	(menu.idx, index.xml, building.xml, configtc.xml, configweb.xml)
xdocs/jk2	(menu.idx, index.xml, building.xml, configtc.xml, configweb.xml)
xdocs		(menu.idx, index.xml)

But there is fatal error in style task, located somewhere in the XSL.
Did the current style works well with subdirectories ?

ant 1.5b2, xerces 2.0.1, xalan 2.3.1 (into latest eclipse 2.0)

    <!-- Add some style to our otherwise  utterly ugly XML files -->
    <style
        basedir="${source.docs}"
        destdir="${build.docs}"
        style="${source.docs}/style.xsl"
        force="true"
        includes="**/**.xml"/>
 

---

docs.check:

docs.init:

docs.color:

docs.color:

docs:
    [mkdir] Created dir: D:\eclipse\workspace\jkdocs\build\docs
    [style] Transforming into D:\eclipse\workspace\jkdocs\build\docs
    [style] Processing D:\eclipse\workspace\jkdocs\xdocs\index.xml to D:\eclipse\workspace\jkdocs\build\docs\index.html
    [style] Loading stylesheet D:\eclipse\workspace\jkdocs\xdocs\style.xsl
    [style] Processing D:\eclipse\workspace\jkdocs\xdocs\jk2\configtc.xml to D:\eclipse\workspace\jkdocs\build\docs\jk2\configtc.html
    [style] D:/eclipse/workspace/jkdocs/xdocs/style.xsl:486:51: Fatal Error! Unknown error in XPath Cause: java.lang.NullPointerException
    [style] : Fatal Error! Fatal error during transformation Cause: Fatal error during transformation
    [style] Failed to process D:\eclipse\workspace\jkdocs\xdocs\jk2\configtc.xml

BUILD FAILED
D:\eclipse\workspace\jkdocs\build.xml:101: Fatal error during transformation

Total time: 6 seconds


Same things when using xsl from tomcat 4.1 docs :

-- with tomcat4 docs

build-main:
    [style] Transforming into D:\eclipse\workspace\tomcat4docs\build\tomcat-docs
    [style] Processing D:\eclipse\workspace\tomcat4docs\security-manager-howto.xml to D:\eclipse\workspace\tomcat4docs\build\tomcat-docs\security-manager-howto.html
    [style] Loading stylesheet D:\eclipse\workspace\tomcat4docs\tomcat-docs.xsl
    [style] Processing D:\eclipse\workspace\tomcat4docs\introduction.xml to D:\eclipse\workspace\tomcat4docs\build\tomcat-docs\introduction.html
    [style] Transforming into D:\eclipse\workspace\tomcat4docs\build\tomcat-docs\appdev
    [style] Processing D:\eclipse\workspace\tomcat4docs\appdev\installation.xml to D:\eclipse\workspace\tomcat4docs\build\tomcat-docs\appdev\installation.html
    [style] Loading stylesheet D:\eclipse\workspace\tomcat4docs\tomcat-docs.xsl
    [style] Processing D:\eclipse\workspace\tomcat4docs\appdev\deployment.xml to D:\eclipse\workspace\tomcat4docs\build\tomcat-docs\appdev\deployment.html
    [style] Processing D:\eclipse\workspace\tomcat4docs\appdev\processes.xml to D:\eclipse\workspace\tomcat4docs\build\tomcat-docs\appdev\processes.html
    [style] Processing D:\eclipse\workspace\tomcat4docs\appdev\source.xml to D:\eclipse\workspace\tomcat4docs\build\tomcat-docs\appdev\source.html
    [style] : Fatal Error! java.lang.NullPointerException Cause: java.lang.NullPointerException
    [style] Failed to process D:\eclipse\workspace\tomcat4docs\appdev\source.xml

BUILD FAILED
D:\eclipse\workspace\tomcat4docs\build.xml:90: Fatal error during transformation

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>