RE: [xsl] example for xsl:output saxon:next-in-chain

Subject: RE: [xsl] example for xsl:output saxon:next-in-chain
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 10 Feb 2005 12:32:47 -0500
Hi Ana,

Like Mike, I couldn't see any way this was broken.

If it were me, I'd start by checking the really bone-headed stuff:

Are you actually using Saxon?
Are you actually calling the "wrapper" stylesheet, not the "first.xsl" stylesheet it imports (which doesn't use the next-in-chain feature)?

This is the kind of thing Mike means by needing to know how you are invoking the transformation. Of course it's probably not so simple as what I've suggested -- but I find I save myself trouble (and the temporary loss of my self-respect) if I check this level of things first, rather than proceeding to troubleshoot more deeply on the assumption that it could never be anything so dumb. (It could.)

It's sort of like checking to see whether the machine is plugged in before calling tech support when it won't power up. The only people who don't need to do this are the ones who are in the habit of doing it anyway.

If everything is wired correctly, Mike is correct, it's Saxon-specific.


At 09:13 AM 2/10/2005, Mike wrote:
The best place for Saxon-specific questions is the saxon-help list or forum

I can't see any obvious reason why this isn't working. To help you with the
problem I would need to see the contents of all the stylesheets, and to know
how you are invoking the transformation.

Michael Kay

> -----Original Message-----
> From: uap001@xxxxxxxxx [mailto:uap001@xxxxxxxxx]
> Sent: 10 February 2005 13:10
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] example for xsl:output saxon:next-in-chain
> Hello,
> I am trying to use the "xsl:output
> saxon:next-in-chain" in a xslt file where I need to
> pass the output from one xsl file to the next xsl file
> to generate the final output. But, I am not able to
> make it work. It just gives me the final output which
> is same as the first xsl translation. Following is my
> xslt file :
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xsl:stylesheet
> xmlns:xsl="";
> xmlns:saxon=""; version="1.0">
> <xsl:import href="first.xsl"/>
> <xsl:output method="xml" indent="yes"
> saxon:next-in-chain="second.xsl"/>
> </xsl:stylesheet>
> With this xslt file, I only get the final output which
> is the one coming out by applying first.xml. It
> doesn't seem to be applying the second.xsl
> translation. Not sure what I am doing wrong here.
> What I want to do is translate my.xml to final.xml as
> follow : my.xml -> translate with first.xml ->
> firstoutput.xml -> second.xml -> finaloutput.xml
> I don't want the intermediate firstoutput.xml - I only
> want the finaloutput.xml.

Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.      
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
  Mulberry Technologies: A Consultancy Specializing in SGML and XML

Current Thread