|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: templates with optional paramters
<xsl:template name="foo">
<xsl:param name="bar_mandatory" select="'default'"/> <xsl:param name="bar_optional" select="'default'"/> <xsl:if test="$bar_optional = 'default'"> <xsl:text>$bar_optional not specified, using default value</xsl:text> </xsl:if> </xsl:template> Regards, Joerg robert.soesemann@xxxxxx wrote: I have an xslt template with 2 paramter. One of them must not be specified. How can I find out if one or two params where specified? Do I need two versions of the template with mode? Or can I check with =''? -- System Development VIRBUS AG Fon +49(0)341-979-7411 Fax +49(0)341-979-7409 joerg.heinicke@xxxxxxxxx www.virbus.de XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








