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

Re: Convert XML elements with extended attributes into

Subject: Re: Convert XML elements with extended attributes into CSV
From: Xiaocun Xu <xiaocunxu@xxxxxxxxx>
Date: Tue, 29 May 2001 07:35:29 -0700 (PDT)
convert xml elements to attributes
Hi, Jeni:

> No problems, but you can apply templates in
> 'escape-CSV' mode to any
> kind of node, attributes included, so with the
> template I provided,
> you could do:
> 
>   <xsl:apply-templates select="@Description"
> mode="escape-CSV" />
> 
> with exactly the same effect.

  Thanks for the reply.  I did initially try to use:
<xsl:apply-templates select="@Description"
mode="escape-CSV" />
But somehow that did not work, the returned string is
exactly the same as the original string, with "
instead of "".
  Then I tested apply-templates with a node, the
string replacement worked prefectly.  So I went ahead
and tried call-template with attribute like below:
<xsl:call-template name="escape-CSV">
  <xsl:with-param name="string" select="@Description"
/>
</xsl:call-template>
And that worked prefectly.
  What could have caused the behavior I am seeing?

much thanks,
Xiaocun

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.