Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] Getting xsl:param out of an XSL document

From: Peter Hunsberger <peter.hunsberger@-----.--->
To: James Adams <james.xml@--------.--->
Date: 7/1/2005 2:25:00 PM
On 7/11/05, James Adams <james.xml@v...> wrote:
> Many of the modern XSLT processors have a simple way to get parameters
> in and out of a transformation.  An example using PHP and the libxslt
> processor (works pretty much the same way with Java and Xalan):

<snip/>
> 
> Where I run into problems is trying to get a parameter back out of the
> XSL.  I know that there is some method to do this since the parser
> implements a functioning getParameter() method, but how do I create a
> top-level <xsl:param> element and assign it a value somewhere later down
> the parse tree?  This functionality is fairly important to a project I
> am working on, so any help would be greatly appreciated.
> 

As David explains, there's not much point in this.  However, user
extensions might do what you want.  In many cases you can define an
extension that can called at any point in your XSLT.  You can then
pass any nodeset or variable into this function and, in general, it
can create a nodeset or string as output back into the XSLT.  However,
in your case you wouldn't necessarily have to return anything...

-- 
Peter Hunsberger


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent