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

AW: disable-output-escaping in attributes

Subject: AW: disable-output-escaping in attributes
From: "Julian Reschke" <julian.reschke@xxxxxx>
Date: Sun, 22 Apr 2001 10:12:03 +0200
php output escaping
This is by design and correct.

Read the spec (XSLT HTML output method) or recent messages in this mailing
list.

-----Ursprungliche Nachricht-----
Von: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]Im Auftrag von Justin
Makeig
Gesendet: Sonntag, 22. April 2001 09:08
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff:  disable-output-escaping in attributes


I'm having trouble adding ampersands within attributes (i.e. putting
querystrings in href or src attributes). The transformation (in both
MSXML3 and Sablot for PHP on Win2k)

<xsl:template match="image">
 <img>
  <xsl:attribute name="src">resize.php?img=
    <xsl:value-of select="@filename"/>.jpg
    <xsl:text disable-output-escaping="yes">&amp;</xsl:text>
    ratio=0.25
  <xsl:attribute name="blah">
    <xsl:text disable-output-escaping="yes">&amp;</xsl:text>
  </xsl:attribute>
  <xsl:attribute>
  </img>
</xsl:template>

results in

<img src="resize.php/img=someimg.jpg&amp;ratio=0.25" blah="&"></img>
(note: the above will look _correct_ to HTML mail clients; please view
the source)

It apprears that for attributes that aren't "recoginzed" (like "blah")
the output escaping works fine, but for others it returns the special
character entity name. Any ideas?

Thanks,

Justin


__________________________________________________
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


 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.