|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: top level xsl:param confusion
Robert,
At 06:09 PM 9/30/2004, you wrote: Hi and thanks, Yes, but if you then test="$permission", the test will fail, because the empty string tests as false. (This is what David and others have tried to tell you.) Setting the parameter to default to "false()" is not the same as setting it to have no value: it has a value, precisely, of Boolean false. When an empty string is coerced to a Boolean, as it always is when it is tested directly, it also gets a value of false. To me, this seems like a bug for java processors (at least Saxon and Xalan) No, it's the way the spec outlines the built-in casting of datatypes. If it were my project, I'd set the default to the string ".", which would not test as false, and which conveniently means, in most directory-traversal syntaxes, the current working directory. Cheers, Wendell
|
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








