[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: multiple files to single file problem

Subject: Re: multiple files to single file problem
From: "Ganesh Babu N" <nbabuganesh@xxxxxxxxx>
Date: Wed, 10 Dec 2008 10:40:32 +0530
Re:  multiple files to single file problem
Thank you very much for giving me the template. It worked perfectly.

Regards,
Ganesh


On Tue, Dec 9, 2008 at 7:12 PM, Florent Georges <lists@xxxxxxxxxxxx> wrote:
> Ganesh Babu N wrote:
>
>> <xsl:element name="author">
>>    <xsl:value-of select="
>>        $a/article/head/author-group/author/given-name"/>
>>    <xsl:text/>
>>    <xsl:value-of select="
>>        $a/article/head/author-group/author/surname"/>
>> </xsl:element>
>
>  The <xsl:text/> doesn't have any effect here.
>
>  You create a single one element author, with the value-of a set of
> given-name elements (basically, their string values are concatenated
> into a single text node, separated by spaces,) then with the value-of
> a set of surname elements.  The result is then correct.
>
>  You can try the following instead:
>
>       ...
>       <xsl:apply-templates select="
>           $a/article/head/author-group/author"/>
>       ...
>
>    <xsl:template match="author">
>       <xsl:copy>
>          <xsl:value-of select="given-name"/>
>          <xsl:text> </xsl:text>
>          <xsl:value-of select="surname"/>
>       </xsl:copy>
>    </xsl:template>
>
>  Note the use of a separate template rule.
>
>  Regards,
>
> --
> Florent Georges
> http://www.fgeorges.org/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.