This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: using document() to access a dynamically generated xml tree
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] using document() to access a dynamically generated xml tree
- From: Jarno dot Elovirta at nokia dot com
- Date: Tue, 7 Aug 2001 10:33:32 +0300
- Reply-To: xsl-list at lists dot mulberrytech dot com
> <xsl:variable name="reports"
> select="document('http://localhost:591/FMPro?-DB=Reports.FP5&-
> format=-dso_xm
> l&Client=WMC&-Find')"/>
> <xsl:for-each select="$reports/fm:FMPDSORESULT/fm:ROW">
> <xsl:value-of select="fm:Client"/>
> <xsl:value-of select="fm:Authors"/>
> <br/>
> </xsl:for-each>
>
> Is there a way of doing this?
I seen no reason why this couldn't work, except you need to escape the
ampersands in the select attribute of xsl:variable.
> I am using the MSXML3 parser and get the
> following error message:
>
> "msxml3.dll (0x80004005)
> The stylesheet does not contain a document element. The
> stylesheet may be
> empty, or it may not be a well-formed XML document."
Does your stylesheet contain a document element?
Jarno
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list