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]
Other format: [Raw text]

Re: problem in using * as a default parameter in xsl:param


ªL ¤lªä 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


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