Hello! I've been using xalan successfully for quite a few months now.
Great job. Now my question.

I just changed my xsl to used named templates. So I import with
<xsl:import href="templates.xsl"/> and call with
<xsl:call-template name="something"/>

Now, xalan from the command line is fine with this, assuming I invoke the
Process from the same directory as the xsl's (makes sense). It'd be nice
if it could resolve the href using the path givin in the -xsl command line
switch.

But the real problem is doing this from within java. It just bails,
doesn't even through an exception, exits my program.

Here's what I'm doing:

JDOMSource xmlsource=new JDOMSource(doc);
Transformer trans = factory.newTransformer(new StreamSource(xslt));
// program exits at this point
trans.transform(xmlsource, new StreamResult(result));

What can I do? Maybe a workaround with xsl:include?
Thanks in advance.

--
Guy McArthur * email{[EMAIL PROTECTED]} http{guymcarthur.com}
Java  Expert * w{520-621-6373} h{520-326-4555} icq{17470307}

Reply via email to