This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: xsl:key and parameters?



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]