XSLT PI Parameters: Difference between revisions

no edit summary
No edit summary
Line 44: Line 44:
* The context position is the position of the context node in the initial current node list used when executing the stylesheet.
* The context position is the position of the context node in the initial current node list used when executing the stylesheet.
* The context size is the size of the  initial current node list used when executing the stylesheet.
* The context size is the size of the  initial current node list used when executing the stylesheet.
* Variables: see TODO.
* No variables are available.
* The function library is the standard XPath function library.
* The function library is the standard XPath function library.
* The namespace declarations are determined by the '''xslt-param-namespace''' PIs, see below.
* The namespace declarations are determined by the '''xslt-param-namespace''' PIs, see below.
Line 65: Line 65:
If '''namespace''' is missing the PI is ignored. If '''namespace''' is empty the prefix mapping is removed.
If '''namespace''' is missing the PI is ignored. If '''namespace''' is empty the prefix mapping is removed.


== TODO ==
== Possible future developments ==
 
Should we allow variable references in the expression? The current patch for mozilla does allow any toplevel variable and parameter in the stylesheet, but it might be a tough requirement on other XSLT engines. Especially since that allows any parameter to reference any other parameter so evaluation order is tricky.


Should we allow any XSLT functions in the expression? document() seems useful, but it seems tricky to maintain the invariant that generate-id() should produce the same string for the same document.
Should we allow any XSLT functions in the expression? document() seems useful, but it seems tricky to maintain the invariant that generate-id() should produce the same string for the same document.
Confirmed users
716

edits