XML documents containing multiple xsl:stylesheet nodes fail to parse as XSLT

NEW
Unassigned

Status

()

10 years ago
4 months ago

People

(Reporter: dvdckl, Unassigned)

Tracking

({regression, testcase})

Trunk
x86
Windows XP
regression, testcase
Points:
---
Bug Flags:
blocking1.9.2 -
blocking1.9.1 -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6

When an XML document contains multiple xsl:stylesheet nodes, attempting to reference one of the stylesheets via id and matching URI fragment in an xml-stylesheet processing instruction causes the message "Error loading stylesheet: Parsing an XSLT stylesheet failed" to appear. 

Removing the non-referenced stylesheet will allow the transformation to succeed.

Changing the xml-stylesheet URI fragment to reference a non-existent xsl:stylesheet node when only one stylesheet is present also triggers the same error message and error console output as having multiple valid xsl:stylesheet nodes.

Reproducible: Always
(Reporter)

Updated

10 years ago
Component: General → XSLT
Product: Firefox → Core
(Reporter)

Comment 1

10 years ago
Created attachment 365600 [details]
A self-styling XSLT document that contains multiple xsl:stylesheet nodes
Regression range: 
http://bonsai.mozilla.org/cvsquery.cgi?module=PhoenixTinderbox&date=explicit&mindate=2006-09-22+00%3A00&maxdate=2006-09-22+09%3A00
Seems to be caused by bug 352601, or at least there was a similar error at that time.
Blocks: 352601
Flags: blocking1.9.2?
Flags: blocking1.9.1?
Keywords: regression, testcase
Version: unspecified → Trunk
QA Contact: general → xslt
Status: UNCONFIRMED → NEW
Ever confirmed: true
The regression is >2yrs old which means that not a lot of people noticed, even after we released Firefox 3.0, so I don't think we need to block. Would take a fix, though!
Flags: blocking1.9.1? → blocking1.9.1-

Updated

9 years ago
Flags: blocking1.9.2? → blocking1.9.2-
You need to log in before you can comment on or make changes to this bug.