I transform the file in a pipeline like this:

With this I get the Exception:
<map:match pattern="*.html"> 
        <map:generate type="serverpages" src="xsp/edit.xsp" label="debug1"/>
        <map:transform src="xsl/edit.xsl" label="debug2">
                <map:parameter name="path" value="{request-param:path}"/>
                <map:parameter name="depth" value="{request-param:depth}"/>
        </map:transform>
        <map:serialize type="html"/>
</map:match>


Those work well for me:
<map:match pattern="*.xml"> 
        <map:generate type="serverpages" src="xsp/edit.xsp" label="debug1"/>
        <map:serialize type="xml"/>
</map:match>

<map:match pattern="*.html"> 
        <map:generate src="xml/static.xml" label="debug1"/>
        <map:transform src="xsl/edit.xsl" label="debug2">
                <map:parameter name="path" value="{request-param:path}"/>
                <map:parameter name="depth" value="{request-param:depth}"/>
        </map:transform>
        <map:serialize type="html"/>
</map:match>


AFAIK is cocoon dealing with SAX events, and that is what I give to the contentHandler 
in the XSP (line: myClass.toSAX(contentHandler);) - so I'm not shure if my problem is 
related to jdom at all.

Stefan

-----Urspr�ngliche Nachricht-----
Von: Oleg Dulin [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 15. Oktober 2003 14:57
An: [EMAIL PROTECTED]
Betreff: Re: XSP and XSLT -> Exception in ServerPagesGenerator.generate()


How do you transform the file ? Are you using a pipeline or something 
else outside of Cocoon ?

Cocoon XSLT transformer as is is using standard org.w3c.dom , not JDom. 
Perhaps you should add your own JDom transformer into the pipeline. 
Otherwise, I recommend converting the object into DOM first.

Oleg


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

Reply via email to