|
Subject: Re: [xsl] Process output from imported stylesheet? From: "Asim Qazi" <qazi@xxxxxxxxxxx> Date: Thu, 11 Mar 2004 11:36:24 -0800 |
Hi M
my this can help u. Just Put a special identifier in ur xsl file where u
want to include the template and while loading it in to the parser replace
the identifier with ur Include path value (node value) .. and transform it
... if u need the code i can send u .. but it is in ASP and i m using MsXML
parser
Qazi Asim
----- Original Message -----
From: "Josh Canfield" <Josh.Canfield@xxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, March 10, 2004 11:44 AM
Subject: RE: [xsl] Process output from imported stylesheet?
> I don't believe you can do this from inside a single XSL file.
xsl:import/include are processed at compile time, so your included/imported
file would have to be complete before the stylesheet was compiled.
>
> You could use a two pass approach, where you generate the XSL in the first
pass, and then use the generated XSL file to process your XML.
>
> Perhaps if you provide an example of the problem you are trying to solve
someone could help with an alternative to dynamic call-templates?
>
> Josh
>
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Magnus Teo
> Sent: Wednesday, March 10, 2004 11:15 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Process output from imported stylesheet?
>
>
> Goodday, this is my first post and i've spent the night looking through
the
> FAQs, archives and elsewhere to no avail. Appreciate any pointers!
>
> I'd like to be able to control which named templates to call, so I read
the
> template names from an XML file. Since it's not possible to call-template
> dynamically with params or variables (xsl:choose enumeration would be my
> last resort), I'd like to modify the principal stylesheet before running
it.
> Is it possible to loop the results of the XML file and use xsl:element to
> create xsl:call-template in a secondary XSL, then have the primary XSL
> import or include it, thereafter process the output as it was embedded at
> runtime? Have tried but all efforts came up blank, I'm using Sablotron.
>
> Thank you.
> M
>
> _________________________________________________________________
> Download games, logos, wallpapers and lots more at MSN Mobile!
> http://www.msn.com.sg/mobile/
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Process output from impor, Josh Canfield | Thread | [xsl] Counting using variable insid, Arulraj |
| RE: [xsl] Embedding html within xml, Josh Canfield | Date | RE: [xsl] Embedding html within xml, Andreas L. Delmelle |
| Month |