This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Document() and &
- From: "Thomas B. Passin" <tpassin at mitretek dot org>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 14 May 2002 10:59:06 -0400
- Subject: Re: [xsl] Document() and &
- References: <web-594505@mail.obinary.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Sounds like a bug, but maybe you can work around it by building the filename
in a variable using concat(), then using the variable in document(). Give
it a try.
Cheers,
Tom P
[Josh Beach]
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&
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
'&' (even thought I know that it is improper to do so)
and get the same error.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list