[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: using xsl:call-template dynamicly

Subject: RE: using xsl:call-template dynamicly
From: Red Light <skydelta98@xxxxxxxxx>
Date: Wed, 21 Apr 2010 05:15:46 -0700 (PDT)
RE:  using xsl:call-template dynamicly
Hi Michael,

"You're using Saxon extensions here, so it's a Saxon question rather than a
general XSLT question"

sorry for that , in fact i would prefer a general xslt solution too(to avoid comment for my boss :d ).

what i'm tryng to do :

i generate a pdf report true(apache fop) i transform a xml source of data to pdf.

in my pdf report i have (sub-section), each sub-section could contain one or many pages.

i want to automate the printing:
for example: i got a main xsl template file (where i import the sub-section):


in the top of my main.xsl i import the sub_file like:

    <xsl:import href="draw_sales.xsl"/>
        <xsl:import href="draw_bills.xsl"/>

and in this draw_sales.xsl:i got something like:

<xsl:template  match="printListSales">

now late consider that in my source xml file i add en element:

(i added just an example file )

and i want to automate the calling of the xsl function that are included in the template ; so i don't have to edit the main file each time ('m designing an application that gonna be used for a third part and i need to automate the call-template call)

so basicly in my main xsl file

i want to do loop
and call:
<xsl:call-template name="{$var1}" ></xsl:call-template>

how could i achieve that because xsl:call-template need a QNAME

and thanks for your help

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.