[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Dynamically calling a template
Hello there. I found some sage advice that I'd like help understanding.
I was striving for the hypothetical (but illegal) solution of <xsl:call-template name="$variable" /> (names cannot be variable). Then I found the below link http://archive.gingerall.cz/archives/public/sablot2001/msg00332.html In this link, Pavel suggests, "Decide what you are going to do before you run the processor and feed it with appropriate data, including stylesheets" rather than try to dynamically summon a template. But I'm stuck in applying this to my current situation. Basically I have several SQL tables (User_BasicInfo, User_AdvancedInfo, User_Goals, User_Contacts), each with a different stylesheet associated with it, which contains a form for adding and updating information corresponding whichever table it is associated with. I select the stylesheet using xsl:choose. I'm guessing another approach will involve use of apply-templates and match but I'm not sure what to match, in my case. Could anyone provide some insight? -S
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|