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

RE: entity output

Subject: RE: entity output
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Thu, 12 Jun 2003 15:16:19 -0400
quot entity
[Craig Kattner]

> The output of this is:
> Spring Wound "Bypass" Timers
> 
> 
> But what I need is:
> Spring Wound &quot;Bypass&quot; Timers
> 
> I'm using MSXML4 for this. I've tried translate(), but not 
> surprisingly, it doesn't work. Is there anyway I can get the 
> output here to have the entity encoded quote (&quot;) instead 
> of just a plain quote (")?
> 

Why do you need the & q u o t ; entity?  Your output is perfectly legal
HTML as it stands.  Now, if you asked for the attribute value to become
the value of an attribute in your output, the serializer __would__
escape it with entities - if, for example, you added this to your
template -

<x att='{@attr}'/>

The result is 

<x att="Spring Wound &quot;Bypass&quot; Timers">

No standard serilaizer is likely to give you entities when it is not
necessary to do escaping.

Cheers,

Tom P

 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.