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

RE: xsl:key and parameters?

Subject: RE: xsl:key and parameters?
From: Raj Muchhala <rmuchhala@xxxxxxxxxxxxxx>
Date: Mon, 18 Sep 2000 10:12:30 -0500
xsl parameters with spaces
My apologies.. my recreation of the code was inaccurate in that the
job_number, when hard-coded, should have three trailing spaces after it.
And this turns out to be the real culprit -- for reasons I don't understand,
passing a parameter & using that parameter in a 'xsl:for each' like:

-------------------------
<xsl:for-each select="xml/rs:data/z:row[@job_number[.=$job]]">
-------------

preserves the trailing spaces while:

-------------
<xsl:for-each select="key('by_job', $job)">
-------------

strips the trailing spaces. Since my XML Source has job_numbers of the form
'12345   ', the second will not work.


-Raj
rmuchhala@xxxxxxxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.