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

RE: Re: Output escaped characters that represent the C

Subject: RE: Re: Output escaped characters that represent the CR as an attribute
From: cknell@xxxxxxxxxx
Date: Wed, 29 Sep 2004 15:34:23 -0400
c escaped characters
When you create an attribute, it must have a name. The <xsl:attribute> element *must* have a name attribute. Thus
<xsl:template match="some-element">
<td>
<xsl:attribute name="color">red</xsl:attribute>
</td>
</xsl:template>

will output this when matched:

<td color="red"></td>

I don't understand why you would want the value of an attribute to be a carriage return + linefeed, so I'm having a hard time figuring out what you really want.


When you use <xsl:text> you are creating a text element. Sticking whitespace in it (the carriage return, linefeed) is perfectly correct.
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     good all <good2all@xxxxxxxxx>
Sent:     Wed, 29 Sep 2004 15:19:30 -0400
To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Re:  Output escaped characters that represent the CR as an attribute

thanks for the reply.

A. "<xsl:attribute" can be followed by "disable-output-escaping="yes"
B. tried
<xsl:attribute>XXXX&#x0D;&#x0A;YYYY</xsl:attribute>, it doesn't work.

Wondering what is the difference between putting <xsl:text> tag after
an element tag and after an attrbute tag.


Good2all





On Thu, 30 Sep 2004 03:03:06 +0800, Niclas Hedhman <niclas@xxxxxxxxxxx> wrote:
> On Thursday 30 September 2004 02:41, good all wrote:
> 
> > <xsl:text
> > disable-output-escaping="yes">XXXX&#x0D;&#x0A;YYYY</xsl:text>
> 
> I am very tired and can't reach the ref material; How about?
> <xsl:attribute
> disable-output-escaping="yes">XXXX&#x0D;&#x0A;YYYY</xsl:attribute>
> 
> --
>   +------//-------------------+
>  / http://www.bali.ac        /
> / http://niclas.hedhman.org /
> +------//-------------------+
> 
> --+------------------------------------------------------------------
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
> --+--

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.