[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Help quoting sequence elements
I have this variable defined in my stylesheet: <xsl:variable name="code-list" select="document('../../hiring-report/xml/position-translation.xml')/position-translation/position/code[@pf='pf']" /> In a template, I have this element: <xsl:value-of select="for $i in $code-list return $i" /> which produces output like this: ACC ACT AO ATT AUD BA CI CLK ... This is good, but I need output like this: 'ACC',' ACT',' AO',' ATT',' AUD',' BA',' CI',' CLK', ... That is to say, I need the individual elements of the sequence to be surrounded by single quotes and separated by commas. I've been reviewing some examples, but can't figure out how to employ concat() to get the result I need. I'm at the point where I've concluded that there is something fundamental I don't understand here and I'm asking for someone to point it out. Thanks. This produces -- Charles Knell cknell@xxxxxxxxxx - email
|
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
|