[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: passing param using value-of
Hi again,
On 2/16/2012 6:03 PM, Andrew Welch wrote: This works fine. Indeed. To spell this out: <xsl:with-param name="arguments" select="preceding-sibling::*"/> binds to $arguments a sequence of nodes, namely the preceding sibling elements. <xsl:with-param name="arguments"> <xsl:value-of select="preceding-sibling::*" /> </xsl:with-param> binds to $arguments a temporary tree with a single text node, whose value is determined by evaluating "preceding-sibling::*". Probably you want the first of these, not the second. But even if you wanted a string, not a sequence of nodes, you could specify that more directly and more efficiently by operating directly on the preceding siblings (with a function that returns a string) instead of by using xsl:value-of. Cheers, Wendell -- ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|
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
|