Re: [xsl] create several js-functions

Subject: Re: [xsl] create several js-functions
From: Nathalie Pult <s9292251@xxxxxxxxxxxxxxx>
Date: Mon, 12 Nov 2001 12:51:14 +0100 (MET)
Hi Jeni
> > I have to generate from one xml-file two outputs in one html-file
> > (for javascript-functions.) In both functions, the order in which
> > the elements are stored in the xml must be maintained. But every
> > function needs to choose different elements.
> > Both functions have to refer to the same predefined templates.
> > How could this be done?

here some more info:
<?xml version="1.0" encoding="utf-8"?>
			<button value="proparoxyton">Proparoxyton</button>

Both js-funcitons are created by the same stylesheet.
should make apply all templates except the one for the <buttons>-Element.
should make apply only the templates for the <titre> and the

Since the order in which the elements are grouped in the xml-file is
mandatory, it seems like I cannot use any <xsl:call-template>-construct.

For every element, there is a <xsl:template match="...">-construct that I
cannot change.
Until now, I used to use an <xsl:template match="buttons"/> for not
displaying any of the <buttons>-subtree. But since in one js-function it
has to be
displayed and in another not, I do not know how to proceed.
I hope I explained the problem more clearly now.

Thank you!

 XSL-List info and archive:

Current Thread