V
vaibhav
Hi
I am writing a wrapper over the XALAN XSLT engine, for transforming XML
documents. My problem is that I need to pass date as a parameter ( with
format mm/dd/yyyy hh.mm.ss) to the XSLT engine at run time (using the
api setStylesheetParam(char* key, char* expression)).
The first argument to setStylesheetParam is the key value and the
second argument is the date expression ( eg it may be like , char* exp
= "12/12/2006 12.12.00 "). But the call fails at run time with the
following error:
XPathParserException: Unexpected token.
expression = '09/22/2006 12.09.09'
Remaining tokens: ( '22' '/' '2006' '12.09' '.09') (, line -1, column
-1)
Now I have two questions:
1)What kind of data types can be handled insie an XSL stylesheet , I
mean when I write something like this
<xslaram name="day"></xslaram>
then can I also ensure that what kind of data type day will be?
Also what are the different kinds of data types supported in XSL.
2)Finally how do I pass my date expression as a parameter, without
failures.
I have a deadline to meet, and will be very grateful if you can help
Vaibhav
I am writing a wrapper over the XALAN XSLT engine, for transforming XML
documents. My problem is that I need to pass date as a parameter ( with
format mm/dd/yyyy hh.mm.ss) to the XSLT engine at run time (using the
api setStylesheetParam(char* key, char* expression)).
The first argument to setStylesheetParam is the key value and the
second argument is the date expression ( eg it may be like , char* exp
= "12/12/2006 12.12.00 "). But the call fails at run time with the
following error:
XPathParserException: Unexpected token.
expression = '09/22/2006 12.09.09'
Remaining tokens: ( '22' '/' '2006' '12.09' '.09') (, line -1, column
-1)
Now I have two questions:
1)What kind of data types can be handled insie an XSL stylesheet , I
mean when I write something like this
<xslaram name="day"></xslaram>
then can I also ensure that what kind of data type day will be?
Also what are the different kinds of data types supported in XSL.
2)Finally how do I pass my date expression as a parameter, without
failures.
I have a deadline to meet, and will be very grateful if you can help
Vaibhav