Richard George asked:
>I have the following code that works OK:
>testXSLT -PARAM Missing "'Fred'" -IN register.xml -XSL registerParse.xsl
>...
>  <xsl:for-each select="REGISTER/[EMAIL PROTECTED] = $Missing]">
>     <xsl:copy-of select="."/>
>  </xsl:for-each>
>...
>I now want to extend it so that I can select multiple names in the
>register, the names being passed in on the command line. However, as the
>number of names for any one call is unknown I can not just add lots of
>PARAMs.

The "classic" approach is to concatenate the names, with a separator to
prevent cross-name spoofing. Then use contains() in the predicate.
testXSLT -PARAM Missing "'Fred+John+Ed+Frieda'" -IN etc.
...
select="REGISTER/DEATILS[contains($Missing,@name)]"

I assume that you can construct the necessary string for the -PARAM.
A leading or trailing + wouldn't affect the result.
.................David Marston

Reply via email to