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

Re: Document() and &

Subject: Re: Document() and &
From: Josh Beach <josh.beach@xxxxxxxxxxx>
Date: Fri, 17 May 2002 11:59:24 +0200
josh beach
Hello again,

I made a small sample piece of XSL that I have proven not to work. The system that provides the XML source is not accessible to the outside world so I don't have a proper URL that I can give you. Any URL should will work fine though except when the url has and ampersand in it...

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml"/>

<xsl:template match="/">
<xsl:copy-of select="document('http://www.somewhere.com/getDocument.html?docType=xml&amp;
id=12345')"/>
</xsl:template>


</xsl:stylesheet>

Here is a snippet that uses a variable that unfortunately works the same.

<xsl:variable name="DocumentURL">http://www.somewhere.com/getDocument.html?docType=xml&amp;
id=12345</xsl:variable>
<xsl:copy-of select="document($DocumentURL)"/>


So I don't really believe that there is a solution to this but if anyone sees anything or has any ideas I would love to hear about it.

Thanks again for all the help!
Cheers,
Josh beach

On Wednesday, May 15, 2002, at 03:58 PM, Jeni Tennison wrote:

Hi Josh,

I have done as you suggested and it works fine with the file on the
local machine but still not with the full URI (I did it with two
different files just to make sure ;). Any suggestions?

I'm stumped. You could send me the XML/XSLT to have a look at, but if it works when you have the file locally but doesn't work when you retrieve it by URL, it's going to be a hard problem to track down.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


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.