Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSLT Parameters not working

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 10/21/2008 7:09:00 PM
Victory wrote:

> Here is the XSL file content:
> 
> <?xml version="1.0" encoding="UTF-8" ?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:lex="http://mainplace.com/somewhere/Reports">
>   <xsl:output method="html" />
>   <xsl:template match="/">
>     <xsl:param name="logoPath" />
>     <xsl:param name="indexPath" />
>     <xsl:param name="cancelMsg" />
>     <xsl:param name="detailed" />

If you want global parameters that you can set from the outside then you 
need to put the xsl:param elements defining those as children of the 
xsl:stylesheet element:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:lex="http://mainplace.com/somewhere/Reports">
   <xsl:output method="html" />
   <xsl:param name="logoPath" />
   <xsl:param name="indexPath" />
   <xsl:param name="cancelMsg" />
   <xsl:param name="detailed" />
   <xsl:template match="/">


>         <meta http-equiv="Content-Type" content="text/html;
> charset=windows-1252" />

Never do that in a stylesheet, instead put the encoding into the 
xsl:output method so that the XSLT processor outputs a corresponing meta 
element when it serializes the transformation result.

   <xsl:output method="html" encoding="Windows-1252"/>




-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


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