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

Re: Ampersand problem

Subject: Re: Ampersand problem
From: "Charles White" <chuck@xxxxxxxxxxx>
Date: Wed, 26 Mar 2003 08:01:34 -0800
xsl ampersand
Try this trick. I'm assuming you are outputting as XML, so the processor
will never allow you to create an unexpanded ampersand. I don't know if this
will work on Xalan or  other Java processors because I don't have access to
it at this very second, but it works on MSXML4. This is a hideous hack,
kids, don't try this at home:

<xsl:output method="html"/>
<xsl:variable name="amper">
<xsl:text>&amp;</xsl:text>
</xsl:variable>
<xsl:template match="/">
<smil href="{$amper}">
</smil>
</xsl:template>
</xsl:stylesheet>

In other words, change the output method to HTML. You shouldn't need DOE.

Chuck White
Author, Mastering XSLT, Sybex Books
http://www.javertising.com/webtech
http://www.tumeric.net
----- Original Message -----
From: "Piers Kittel" <work@xxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, March 26, 2003 6:10 AM
Subject: Re:  Ampersand problem


> Cheers David and Robert for your prompt replies
>
> Unfortuantely disable-output-escaping don't seem to be working at all for
some
> reason.
>
> Cheers - Piers
>
> Quoting "Dr. Robert Spiske" <spiske@xxxxxxxxxxxxxxxxxxx>:
>
> >
> > >The thing is that I'm using XSLT to create the HTML and SMIL files to
> > contain
> > >the correct clips, and the parser I use (Xalan) outputs "&" as "&amp;"
> > but
> > >when
> > >Quicktime tries to parse the URL, it chokes and crashes.  It *has* to
> > have
> > >"&"
> > >in the URL - "&amp;" will not work.
> > >
> > >So how do I make Xalan output a pure "&" in the SMIL file?
> >
> > Hi!
> >
> > Have you tried the disable-output-escaping attribut fro xsl:value-of or
> >
> > xsl:text ?
> >
> > Robert
> >
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
>
>  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.