Opened 14 years ago

Closed 10 years ago

#2379 closed defect

resetting stylesheet parameters for IE in dojo.xm.XslTransform

Reported by: guest Owned by: Tom Trenka
Priority: high Milestone: future
Component: Dojox Version: 0.4.1
Keywords: xsl Cc:
Blocked By: Blocking:

Description (last modified by Tom Trenka)

The current implementation of dojo.xml.XslTransform?'s removeIeParams is not working properly, since previously set stylesheet parameters for a processor object are simply set to an empty string if cleared/reset afterwards, e.g. :

processor.addParameter("myparam", "");

This would not take into account any default values set in a stylesheet for this parameter, e.g. :

<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0"

xmlns:xsl=""> <xsl:output method="html" indent="yes"/>

<xsl:param name="myparam">myvalue</xsl:param> .... </xsl:stylesheet>

The only way to clear/reset any previously set parameters for a stylesheet/processor, is (unluckily) to create a new processor via the ownerTemplate, e.g. :

processor = processor.ownerTemplate.createProcessor();

This will create a new processor with no parameters set so far from the owner template (cached stylesheet). This has been tested by me and it works (means: previously set parameters are cleared in a way that any stylesheet default values are taken again).

I'm aware that this might be an expensive operation that would probably decrease the benefits from caching a processor object, but up till now I found no other solution to reliably reset/clear stylesheet parameters. Using "transformNode" isn't an option as per my opinion, since no support for parameters :-(


Change History (6)

comment:1 Changed 14 years ago by dylan

Milestone: 0.9

comment:2 Changed 13 years ago by Adam Peller

Owner: changed from anonymous to Tom Trenka

comment:3 Changed 13 years ago by Tom Trenka

Component: GeneralDojox
Milestone: 0.9

comment:4 Changed 12 years ago by dylan

Milestone: 1.3

comment:5 Changed 12 years ago by Tom Trenka

Description: modified (diff)
Milestone: 1.3future

comment:6 Changed 10 years ago by Tom Trenka

Status: newclosed

Some triage, closing old tickets that seem no longer relevant.

Note: See TracTickets for help on using tickets.