This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Document() and &
- From: "Stuart Celarier" <stuart at ferncrk dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 17 May 2002 09:17:40 -0700
- Subject: RE: [xsl] Document() and &
- Reply-to: xsl-list at lists dot mulberrytech dot com
Jeni, you wrote:
> If I understand what you're saying, it doesn't sound right to me.
That is because you understand what I'm saying and it is not right. I
did not pay enough attention to the question. The goose has come home to
roost.
To confirm what you say, here is a snippet of working code that I was
playing with only the other day.
<xsl:template match='authorRequest'>
<xsl:variable name='URL'>
http://localhost/sql?sql=select+*+from+authors+where+au_lname=
'<xsl:value-of select='lastName'/>'
+for+xml+auto&root=query
</xsl:variable>
<xsl:copy-of select="document($URL)/query/authors"/>
</xsl:template>
This performs correctly using the .NET XSLT processor. Ampersand is
encoded in the URL using & in its intended meaning.
Honk, honk! I hear the geese flying over just now. Maybe one of them was
sent by Josh, too?
Cheers,
Stuart
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list