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

RE: Diferent behaviour using document() in IE / FF

Subject: RE: Diferent behaviour using document() in IE / FF
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 31 Aug 2005 21:49:48 +0100
ie ff xml namespace
This looks prima facie like an FF bug.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Antsnio Mota [mailto:amsmota@xxxxxxxxx]
> Sent: 31 August 2005 18:59
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Diferent behaviour using document() in IE / FF
>
> I have this strange behaviour using XSLT in IE and FF.
>
> I have a XML like this:
> <doc>
> <aaa>
> <bbb>ccc</bbb>
> </aaa>
> <ccc>
> <ddd>eee</eee>
> </ccc>
> </doc>
>
> In the client (browser) i load this documento and apply a xslt so it
> results in this:
>
> <doc>
> <aaa>
> <bbb>ccc</bbb>
> </aaa>
> </doc>
>
> Sometime later in the application, i use another xslt that uses that
> document (call it "doc.xml")
>
> <xsl:variable name="xmldoc" select="document('doc.xml')"/>
> <xsl:apply-templates select="$xmldoc"/>
>
> what happens is that teh content of the variable xmldoc is, in IE, the
> original document, as i expected
>
> <doc>
> <aaa>
> <bbb>ccc</bbb>
> </aaa>
> <ccc>
> <ddd>eee</eee>
> </ccc>
> </doc>
>
> but in FF i get the first transformed doc
>
> <doc>
> <aaa>
> <bbb>ccc</bbb>
> </aaa>
> </doc>
>
> Since i want to access the nodes on the original doc (in this example
> <ccc>), in FF my app won't work.
>
> I'm wondering  what the correct behaviour should be, or is this
> implementation dependent?
>
> Thanks.

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.