Subject: Re: [xsl] counting preceding siblings in with-param From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 23 Jul 2003 17:29:42 +0100 |
> In the variable declaration you can test if the parameter to see if > it has a value. parameters always have a value. in your case the default value is the empty string "", which means you have to test for it and replace by the real defualt. It's simpler to make the default be count(preceding-sibling::section) + 1, then you can just yse the parametr without testing. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] counting preceding siblin, Kienle, Steven C [IT | Thread | RE: [xsl] counting preceding siblin, Kienle, Steven C [IT |
[xsl] xslt code beautifier?, Ming Yu | Date | Re: [xsl] Change text on given node, Mukul Gandhi |
Month |