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

RE: How can I get XSLT to write <cfreturn this>

Subject: RE: How can I get XSLT to write <cfreturn this>
From: "Martinez, Brian" <brian.martinez@xxxxxxxxxxx>
Date: Mon, 18 Aug 2003 15:56:47 -0600
cfreturn
> From: Scott Powell [mailto:scotthpowell@xxxxxxxxx]
> Sent: Monday, August 18, 2003 3:33 PM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  How can I get XSLT to write <cfreturn this>
> 
> 
> Hi,
> 
> I'm trying to develop a transformation that will
> output, among other things, this text (literal)...
> 
> <cfreturn this>
> 
> I've tried xsl:element, but can't have a blank
> attribute.
> 
> I've tried CDATA, but that escapes < and >.
> 
> I've tried xsl:text, but it doesn't like that either.
> 
> What's the best way?

I assume you're not trying to output XML despite the presence of angle
brackets, because what you want isn't valid XML.  You'll need to set your
output method to text and use disable-output-escaping, although it may not
work with your XSLT implementation:

  <xsl:output method="text"/>

  <xsl:template match="/">
    <xsl:text disable-output-escaping="yes">&lt;cfreturn this&gt;</xsl:text>
  </xsl:template>

What are you trying to create with your transformation?  Any solution that
requires d-o-e may indicate that XSLT isn't the best tool for the job.

hth,
b.

| brian martinez                           brian.martinez@xxxxxxxxxxx |
| lead gui programmer                                    303.357.3548 |
| cheap tickets, part of trip network                fax 303.357.3380 |
| 6560 greenwood plaza blvd., suite 400           englewood, co 80111 |
| cendant travel distribution services   http://www.cheaptickets.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.