commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Lerche <>
Subject [jelly] xslt transform fun (newbie)
Date Wed, 22 Dec 2004 13:45:56 GMT

I am using Jelly as a embedded XML pipeline in a java program.

1. In the jelly docs ( 
It describe following way to use the x:transform tag.

<x:transform xslt="file:///test/default.xslt">
	<x:parse xml="file:///test/data.xml"/>

But it does not work. I get a "x:parser missing var attrib". 
I found a workaround. 

<x:parse xml="file:///test/data.xml" var="doc"/>
<x:transform xslt="file:///test/default.xslt" xml="${doc}"/>

but it defeats the XML pipeline idea.  I would appreciate if someone could 
comment on the problem.

2. If I use xsl:include in my xslt stylesheet I get following error 
 "javax.xml.transform.TransformerException: Had IO Exception with stylesheet 

I first thought that Jelly lost the relative location path of the default.xslt 
file but even if I use the absolute file path in the xsl:include tag,  Jelly 
reports the same error stated above.

In other words - it does not work to include any <xsl:include 
href="default-util.xslt"/> or <xsl:include href="/test/default-util.xslt"/>
in my xslt file when transforming via Jelly.
By the way all of my xslt files work when called directly from Java.

Please any help would be appreciated. 

<x:transform xslt="file:///test/default.xslt" xml="${doc}"/>

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
     <xsl:output method="html" version="4.0" encoding="UTF-8" indent="no"/>
    <xsl:include href="default-util.xslt"/>
Med venlig hilsen / Yours sincerely 
European Dedicated Server Hosting 
Extremely low prices, secure, and reliable
Linux and BSD distributions only 

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

View raw message