how to pass a parameter and use that in my xslt

i have a xml file and a related xslt file. I am using msxsl.exe and i need to pass a parameter as a command line argument and use that in my xslt file. how can i do that???

command:

msxsl.exe country.xml sheet.xslt -o country_sheet.html p1="india"

how to retrieve the value india in my xslt file?

Answers


try this

<xsl:param name="p1" select="p1"/>

this would be outside any templates, acting somewhat like a global variable

yes then to use the contents of this you could use this inside a template

<xsl:value-of select="$p1"/>

Need Your Help

Can't call method from URL when super class is REST_Controller, codeigniter

codeigniter doctrine

I want to run URL from browser and get file content located out of my project, for example: /home/fessy/file.txt

Calling functions in a c++ dll from c# that are defined in another dll

c# dll pinvoke armadillo

I have already been able to read functions in a c++ dll that contains methods like this:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.