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

Re: Document() and &

Subject: Re: Document() and &
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Tue, 14 May 2002 11:33:19 +0100
xml ampersand gets saved as
Hi Josh,

> So on to my problem... what I need is for the reference to
> contain an ampersand. ie.
> <xsl:apply-templates 
> select="document('http://www.somewhere.com/getDocument.html?docType=xml&amp;id=12345')"/>
>
> This will not work and gives the following error "Error while
> parsing
> 'http://www.somewhere.com/getDocument.html?docType=xmlid=12345'.
> Missing equals sign between attribute and attribute value". Some
> where along the line the ampersand gets removed. I have also tried
> using just a '&' instead of a '&amp;' (even thought I know that it
> is improper to do so) and get the same error.

The behaviour you're describing sounds very weird. What processor are
you using, and how are you invoking it? Using &amp; as you are doing
should work fine -- it certainly shouldn't get removed.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.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.