[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Pass node to template

Subject: RE: Pass node to template
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 20 May 2003 23:36:50 +0100
xsl pass node as parameter
> 
> Never Mind... I'm being a retard. ...
>
> Things would have been much better if I had remembered to change
number=3 
> on the command line to string=3

Two good examples here of why it's good language design to be rather
stricter about error checking. Type checking of course comes into this
category as well. The "anything goes" style of XSLT 1.0 is great when
you get things right, but can be a pig to debug when you get things
wrong. 

Note that XSLT 2.0 allows you to say "required='yes'" on a parameter
definition, which means you will automatically get an error message if
you mistype the parameter name. I don't think this is available yet for
stylesheet parameters, but it will come...

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.