|
Subject: RE: xsl:key and parameters? From: Raj Muchhala <rmuchhala@xxxxxxxxxxxxxx> Date: Mon, 18 Sep 2000 10:12:30 -0500 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| xsl:key and parameters?, Raj Muchhala | Thread | XML+XSL to HTML strategies advice n, Dylan Parker |
| RE: simple grouping question, Ben Robb | Date | Re: My favourite XSLT enhancement r, Alexey Gokhberg |
| Month |