473,387 Members | 1,529 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Passing parameters to saxon on windows 2000 system ?

Hello,

I want to pass a parameter to an xslt using saxon on a windoes 2000
system.
I'm using this command line in a batch file:

java -jar c:\programme\saxon\saxon8.jar -v -novw -o
...\html_files\output.html ..\xml_files\input.xml
...\xslt\xml2html.xsl language=EN

The problem is the last parmater for saxon "language=EN" this parameter
is split by (the dos box ?) to two paramters "langauge" and "EN" ang
the "=" has gone.

I checked this behavior using another batchfile just used to report the
paramters (echo %1 %2 %3 ...)

Of course saxon doesn't understand this paramter when it's split into
two.

How can a variable of an xslt be set by saxon using a command line on a
windows 2000 system (maybe it's also a problem on other version of
windows) ?

Regards

Klaus

Jun 27 '06 #1
2 2274
Hi Klaus,

You can specify a command line parameter that contains characters that
may split that in multiple parameters if you enclose it in quotes, so
try "language=EN" instead of language=EN.

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
klaus wrote:
Hello,

I want to pass a parameter to an xslt using saxon on a windoes 2000
system.
I'm using this command line in a batch file:

java -jar c:\programme\saxon\saxon8.jar -v -novw -o
..\html_files\output.html ..\xml_files\input.xml
..\xslt\xml2html.xsl language=EN

The problem is the last parmater for saxon "language=EN" this parameter
is split by (the dos box ?) to two paramters "langauge" and "EN" ang
the "=" has gone.

I checked this behavior using another batchfile just used to report the
paramters (echo %1 %2 %3 ...)

Of course saxon doesn't understand this paramter when it's split into
two.

How can a variable of an xslt be set by saxon using a command line on a
windows 2000 system (maybe it's also a problem on other version of
windows) ?

Regards

Klaus


Jun 27 '06 #2
Hi George,

I tried to encolse the parameter in quotes, but I thougt that saxon
could not read the parameter then, because my variable wasn't defined
in the XSLT.

Now I found that I needed a <xsl:param name="variablename"/> statement
in the XSLT.
So passing the parameters in quotes "variablename=variablevalue" is the
correct solution.

Thank you for the hint

Regards
Klaus

Jun 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Rolf Kemper | last post by:
Hi All, ned help on the example below. It works fine for msxml3/4 but has problems with saxon. Saxon complains "can not find matching function ..... " My target is to write style sheets...
7
by: Harolds | last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005 the pmID is evaluated to "" instead of what the value is set to: .... xmlItems.Document = pmXML // Add the pmID...
11
by: Johnny | last post by:
I'm a rookie at C# and OO so please don't laugh! I have a form (fclsTaxCalculator) that contains a text box (tboxZipCode) containing a zip code. The user can enter a zip code in the text box and...
8
by: Johnny | last post by:
I'm a rookie at C# and OO so please don't laugh! I have a form (fclsTaxCalculator) that contains a text box (tboxZipCode) containing a zip code. The user can enter a zip code in the text box and...
0
by: Neelima Godugu | last post by:
Hi All, I have developed a windows forms user control, which I am going to host in Internet Explorer.. I am familiar with the security settings requirement inorder to do the above. I have...
10
by: Adis | last post by:
Asp.Net Visual Studio 2003 SQL Server. Hi, Obtaining Data Based Upon Multiple Selections From a ListBox... I have database in Sqlserver and ListBox (Multiple Selection Mode) in my Visual...
0
by: Adis | last post by:
Hi, My purpose consists on filtering the fields "years" and "clients" of a project WinForm, in a similar way to as I make it without any problems in a previous project ASP.NET. The...
5
by: jhurrell | last post by:
I have been having some trouble getting my XSL style sheet to parse correctly. I have some XML outputted from an SQL-Server, that I then need to turn into multiple HTML files. This I have done...
6
by: David Schwartz | last post by:
I have a template that searches for and replaces found instances of strings in other strings and replaces them with yet another string. These strings are passed to the template as parameters, not...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.