Subject: Re: [xsl] problem in using * as a default parameter in xsl:param From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx> Date: Mon, 29 Apr 2002 19:02:10 +0200 |
林 子芯 wrote: > > Hi, can somebody tell how could i set the default value of a parameter > to all possible value (i.e. *) > > this is what i did: > > <xsl:param name="param1" select="*"/> variables are not macros, they hold *evaluated* values. > .... > <xsl:for-each select="elementName[childName=$param1]"> > <xsl:copy-of select="elementName"/> > </xsl:for-each> <xsl:param name="param1" select="'*'"/> <xsl:for-each select="elementName/*[name()=$param1]"> <xsl:copy-of select="elementName"/> </xsl:for-each> Or even local-name() for safety. -- Oleg Tkachenko Multiconn International, Israel XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] problem in using * as a d, Michael Kay | Thread | RE: [xsl] problem in using * as a d, TSchutzerWeissmann |
Re: [xsl] Re: Create a node set and, paul morgan | Date | [xsl] Transformation for FO table w, Gustaf Liljegren |
Month |