xsl-list
[Top] [All Lists]

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

2005-02-10 10:32:47
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.

Cheers,
Wendell

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

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
http://www.saxonica.com/

> -----Original Message-----
> From: uap001(_at_)yahoo(_dot_)com [mailto:uap001(_at_)yahoo(_dot_)com]
> Sent: 10 February 2005 13:10
> To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
> 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="http://www.w3.org/1999/XSL/Transform";
> xmlns:saxon="http://icl.com/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(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
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
======================================================================


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--