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

RE: Writing a stylesheet to create a stylesheet, with

Subject: RE: Writing a stylesheet to create a stylesheet, with XSLT in the XML
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 18 Jun 2002 08:58:56 +0100
stylesheets writing value of select
> 
> XML Snippet:
> 
> <Sections label="&lt;xsl:value-of 
> select=&quot;/Doc/FirstName&quot;/&gt;"/>
> 
> Okay, let me try again.  The above snippet is in my XML file.

You are right that when the source XML contains XML carefully disguised
as character data, d-o-e is the only way of getting it out as XML. Most
of us would probably argue that your XML file is badly designed, but
perhaps you weren't responsible for it.
 
> 
> BUT, I want the output in the result tree to look EXACTLY like this:
> 
> <xsl:value-of select="/Doc/FirstName"/>
> 
> In other words, the value of the attribute "label" would be 
> directly placed into the result tree without re-escaping the 
> "&quot;", "&lt;" and "&gt;" entities.

d-o-e actually bypasses the result tree and puts things directly in the
serialized output stream.


  Typically you would do 
> that like this:
> 
> <xsl:text disable-output-escaping="yes"><xsl:value-of
> select="@label"/></xsl:text>

You want <xsl:value-of select="@label" disable-output-escaping="yes"/>

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 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.