Closed Bug 73492 Opened 25 years ago Closed 23 years ago

XSLTProcessor needs a way to have parameters initialized

Categories

(Core :: XSLT, enhancement, P5)

enhancement

Tracking

()

VERIFIED FIXED

People

(Reporter: darkmane, Assigned: keith)

References

Details

The XSLT processor lacks the capability to have parameters initialized brfore processing. This capability is needed before work on bugs 70366 and 70369 can continue. Several solutions have been suggested on IRC: 1) an initialize method that takes either a NamedMap of the values or a processorState 2) Creating more process methods that take either a NamedMap of values or a processorState. 3) method that allows the getting and setting of parameters (Again via either a NamedMap or ProcessorState) ie getParameters()/setParameters()
Status: UNCONFIRMED → NEW
Ever confirmed: true
I'd suggest having an "addParameters(NamedMap* vars)" method.
Should parameters be restricted to strings, or any "XPath Result" (see interface ExprResult), which also includes booleans, numbers and node-sets.
I feel that the parameters should not be limited to strings, but include numbers and boolean as well. I can't see a good way of specifying nodesets through any of the methods for initialization that have been suggested (ie commandline, javascript or stylesheet pi) However , initially, for ease of implementation it might be best to limit it to strings.
Priority: -- → P5
blame sicking, all on his knees
Depends on: rewrite_variable
It would also be useful to be able to set a parameter using a processing instruction. This way it would be possible to set the parameters without using javascript on the browser.it could be something like <?TransforMiiX param1="value" param2="value2" ?>
Depends on: txbranch
.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
mass verifying
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.