It looks like you've used the apostrophe (') delimiter to start your
pattern and start the literal MM/dd/yyyy which ends the pattern.  this
is why the error message is so strange.  Try using quotes where the
nested apostrophes are now.

Also, it would be best to upgrade to a current release of XalanJ.  The
1.2.2 stuff is pretty old and no longer supported.

Gary

Noel L Yap wrote:
> 
> I think others have reported this recently, so please point me to the archives
> if this is a repeat.
> 
> First off, I'm using xalan-j version 1.2.2 on a command line.
> 
> I've been able to get this to work before so I don't know what's wrong.
> 
> I've attached my xsl.
> 
> Here's the output:
> nyap.jpmpsdev@jpmpsdev2:/vobs/ds/tig/web/xsl/tig|nyap-tig-du> xslt
> ~/tmp/Meetings.xml events.xsl events.html -PARAM view "'aoeu'"
> ========= Parsing file:/vobs/ds/tig/web/xsl/tig/events.xsl ==========
> XSL Error: pattern = 'java:format(java.text.SimpleDateFormat.new('MM/dd/yyyy
> hh:mm
> a'),parse(com.jpmorgan.tk.utils.core.iso8601.IsoDateTimeParser.getInstance(),.))'
> Could not find function: java.text.SimpleDateFormat.new
>  Remaining tokens: ( '(' ''MM/dd/yyyy hh:mm a'' ')' ',' 'parse' '('
> 'com.jpmorgan.tk.utils.core.iso8601.IsoDateTimeParser.getInstance' '(' ')' ','
> '.' ')' ')'), style tree node: org.apache.xalan.xslt.ElemValueOf@4ea91
> XSL Error: Could not parse file:/vobs/ds/tig/web/xsl/tig/events.xsl document!
> XSL Error: processStylesheet not successful!
> XSLT: pattern = 'java:format(java.text.SimpleDateFormat.new('MM/dd/yyyy hh:mm
> a'),parse(com.jpmorgan.tk.utils.core.iso8601.IsoDateTimeParser.getInstance(),.))'
> Could not find function: java.text.SimpleDateFormat.new
>  Remaining tokens: ( '(' ''MM/dd/yyyy hh:mm a'' ')' ',' 'parse' '('
> 'com.jpmorgan.tk.utils.core.iso8601.IsoDateTimeParser.getInstance' '(' ')' ','
> '.' ')' ')')
> Xalan: was not successful.
> XSLProcessor: done
> 
> I've been able to get java.lang.String.new to work, but I haven't had any luck
> with anything else.
> 
> Any help would be greatly appreciated.
> 
> Thanks,
> Noel
> 
> Enc
> (See attached file: events.xsl)
> 
>   ------------------------------------------------------------------------
>                  Name: events.xsl
>    events.xsl    Type: BizTalk Schema (text/xml)
>              Encoding: base64

Reply via email to