[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Inserting a separator only between non-empty strin
Thank you very much for your explanation, Michael. Now I understand
better why things have to be this way.
The solution you suggested works perfectly for me. I am just a bit disappointed that XSLT 2 doesn't provide with me a more elegant construct that would make life even easier for me (like XSLT 2 already did in a lot of cases). :-) mozer wrote: and what about that ? Unfortunately, this won't work, as xsl:sequence only allows to use the select attribute here, not its element content. However, adapting it a little I get <xsl:variable name="concat" select="($a, $b, $c)"/> <xsl:value-of separator="|" select="$concat[string-length(.) gt 0]"/> which seems to work (but I am not sure). Anyway, I prefer Michael's solution. Yves
|
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
|