This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl:key and parameters?
- To: "'XSL-List at mulberrytech dot com'" <XSL-List at mulberrytech dot com>
- Subject: RE: xsl:key and parameters?
- From: Raj Muchhala <rmuchhala at perryjudds dot com>
- Date: Mon, 18 Sep 2000 10:12:30 -0500
- Reply-To: xsl-list at mulberrytech dot com
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@perryjudds.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list