Open Bug 481572 Opened 15 years ago Updated 2 years ago

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

Categories

(Core :: XSLT, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: dvdckl, Unassigned)

References

Details

(Keywords: regression, testcase)

Attachments

(1 file)

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
Component: General → XSLT
Product: Firefox → Core
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-
Flags: blocking1.9.2? → blocking1.9.2-
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: