Access to URL parameters in XLST stylesheet

RESOLVED WONTFIX

Status

()

Core
XSLT
--
enhancement
RESOLVED WONTFIX
10 years ago
2 years ago

People

(Reporter: Ondra Zizka, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13

Would be great if Firefox provided URL parameters to XSLT transformer:
   
   http://example.com/data.xml?urlparam=value

Especially useful in combination with document() XSLT function.


--- data.xml: ----------
<?xml ... ?>
<?xml-stylesheet type="text/xsl" href="example.xslt"?>

--- example.xslt: ----------
<xsl:stylesheet version="1.0" ...>
<xsl:param name="urlparam"/>
...
<xsl:value-of select="$urlparam"/>


This would echo "value".

Reproducible: Always

Steps to Reproduce:
Construct some XLST formatted XML as described above and load the XML with a param in the URL.
Actual Results:  
Firefox does not provide the param to the XLST processor.

Expected Results:  
URL parameter provided to the XLST processor.
(Reporter)

Updated

7 years ago
Version: unspecified → 3.6 Branch

Updated

7 years ago
Component: General → XSLT
Product: Firefox → Core
QA Contact: general → xslt
Version: 3.6 Branch → Trunk
(Reporter)

Comment 1

2 years ago
Hello, any considerations for this?
XSLT sees very little usage these days. Little enough that it's more valuable to invest in other parts of Gecko than XSLT.

In fact, XSLT support is likely to eventually get removed. That's not going to happen very soon, and once it does happen there will be plenty of headsup. And it won't happen as long as XSLT continues to see a lot of usage, but that doesn't appear to be the case.

https://www.chromestatus.com/metrics/feature/timeline/popularity/78
https://www.chromestatus.com/metrics/feature/timeline/popularity/79
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WONTFIX

Comment 3

2 years ago
I hope the XSLT functionality will NOT be removed.
(Reporter)

Comment 4

2 years ago
XSLT is used quite a lot, especially in the enterprise applications. I personally know about 3 CRM/ERP systems using XSLT in browser, and quite some applications that export XML and use XSLT to preview these data outside of dynamic apps.

Could you please share the source of your statistics of XSLT not being used?
You need to log in before you can comment on or make changes to this bug.