|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Looking for a shorter mapping expression
> Could someone, please, suggest a more compact expression, equivalent > to the value of the "select" attribute below: > > <xsl:sequence select= > "for $this in $pList1 return > f:apply($pFun, $this)" > /> > > It seems to me that this is illegal: > > $pList1/ f:apply($pFun, .) > I'm not sure you regard it as more compact, but if you want to do a mapping that uses the context item rather than a range variable, you can do it at the XSLT level: <xsl:for-each select="$pList1"> <xsl:sequence select="f:apply($pFun, .)"/> </xsl:for-each> This construct works for all (combinations of) sequences, whether they contain nodes or atomic values. Michael Kay http://www.saxonica.com/
|
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








