|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Variable and parameter with same name and scope a
> I've only tried this with Saxon 8.7.1 so I'm assuming it's > intentional? Is there a good reason for this - something > that I'm not seeing at the moment? It's intentional and the reason for it is that people voted for it, but I can't read their minds to tell you why they did so. It can be quite convenient though when writing a micro-pipeline: <xsl:variable name="selected-nodes" select="...."/> <xsl:variable name="selected-nodes" select="if (XYZ) then $selected-nodes else ...."/> <xsl:variable name="selected-nodes" select="if (PQR) then $selected-nodes else ...."/> Michael Kay http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. 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
|







