xsl-list
[Top] [All Lists]

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

2005-09-01 04:14:44
So you're saying the IE behaviour is the behaviour expected from a
conformant processor, and that this is not open to implementation,
right?

I'll try to look at FF related foruns for more info, but it seems
strange no one complaint about it until now.

However, i seem to remember some similar problem from some months ago,
but i can't figure out what it was, nor the solution...


On 8/31/05, Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:
This looks prima facie like an FF bug.

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

-----Original Message-----
From: António Mota [mailto:amsmota(_at_)gmail(_dot_)com]
Sent: 31 August 2005 18:59
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>