This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
REPOST about dynamic xpath.(relates to RE: problem in using * as a default para)
- From: "=?big5?B?qkwgpGyq5A==?=" <minikittygo at hotmail dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 01 May 2002 16:20:40 +0000
- Subject: [xsl] REPOST about dynamic xpath.(relates to RE: problem in using * as a default para)
- Reply-to: xsl-list at lists dot mulberrytech dot com
hi all
thanks for your solutions, however, i was wondering what happens if it is
there are more than one parameter within the xpath expression? is there an
legant solution for it?
i.e.
<xsl:param name="param1" select="'*'"/>
<xsl:param name="param2" select="'*'"/>
...
<xsl:for-each select="elementName[childName/something1=$param1 and
$childName/something2=$param2]>
...
<xsl:for-each>
Furthermore, i was wondering how will you set the parameter if the
parameter consist of white spaces (e.g. parameter='this is my parameter'),
in xalan-C command line will ignore the 'is', 'my' and 'parameter' and
throws an XPathParserexception error. do i use normalize-space($param1)?
but it seem it doesn't work, please help.
finally, can i use the following parameter for a xsl:for-each statement
using
xalan:evaluate? (e.g. "a/c='hello world'") sorry about throw so many
questions at the same time
Many thanks
regards
Kit
_________________________________________________________________
在您的行動裝置上傳送接收 Hotmail 郵件,請移至:http://mobile.msn.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list