Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - XSLT Parameters not working >Thread Next - Re: XSLT Parameters not working Re: XSLT Parameters not workingTo: 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
