|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] templates with optional paramters
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 =''? <xsl:template name="foo"> one mandatory paramter one optional paramter ...do things... </xsl:template> One can call it by: <xsl:call-template name="foo"> <xsl:with-param name=="bar_mandatory" select="$whatever" /> <xsl:with-param name="bar_optional" select="$whatever" /> </xsl:call-template> OR <xsl:call-template name="foo"> <xsl:with-param name=="bar_mandatory" select="$whatever" /> </xsl:call-template> Rob ______________________________________________________________________________ Darf es ein bisschen mehr sein? Mehr Speicher, mehr Mail, mehr Erlebnis, mehr Leistung, mehr Prämie unter http://club.web.de/?mc=021102 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








