[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: variable outside a for-each loop
At 2007-09-20 14:52 +0200, Mathieu Malaterre wrote:
I have the following XML (docbook): ... My goal is to produce: Solution or syntax? An abbreviated syntax for what you have would be: <xsl:for-each select="row"> <entry one="{normalize-space(string-join(entry[1]/para,' '))}" two="{normalize-space(string-join(entry[2]/para,' '))}"/> </xsl:for-each> But whether or not this is a correct solution depends on whether or not the function calls you chose have met your requirements. You were almost there when using the braces for the attribute value template ... but *any* expression can go in an attribute value template, not just a variable reference. I hope this helps. . . . . . . . . . . Ken
|
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
|