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

Re: Passing parameters using <xsl:apply-templates>

Subject: Re: Passing parameters using <xsl:apply-templates>
From: Eliot Kimber <ekimber@xxxxxxxxxxxx>
Date: Sat, 16 Feb 2008 07:23:07 -0600
Re:  Passing parameters using <xsl:apply-templates>
Mark wrote:
Thanks for the swift responses.

Alice, to clarify, my output currently gives me:

<a href="#!-- #ID=doba_io89456.sl2098796 --#"> in my html anchors. The
doba part is the name of the original xml file listing that is passed
to the processor using the document function.

My intention is to output:

<a href="#!-- #ID=param-test_io89456.sl2098796 --#"> where param-test
is the name of the processed file that is listed in doba.xml.

I'll explore the tunnel parameters further. This was a suspected
option but I was having trouble finding correct syntax so hopefully
Eliot's sample code will put me on the right road.

Another tip: a very easy-to-make and hard-to-diagnose mistake is forgetting to specify tunnel="yes" on the param statements in templates that need the parameter, especially if you're refactoring from untunneled to tunneled parameters.

It just occurs to me now that one could use a simple XQuery to generate a parameter use report for an XSLT that would help diagnose that problem. Will post when I have it worked out.



Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 610.631.6770

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.