I am trying to produce XPath 2.0 parser Java files using Javacc.

I downloaded XPath 2.0 grammar XML file: xpath-grammar.xml, and the
corresponding XSLT stylesheet: javacc.xsl from
http://svn.apache.org/viewvc/xalan/java/branches/xslt20/grammar/.

I then used Xalan-J 2.7.0 to generate the javacc grammar file for XPath 2.0.

But when I ran javacc on the produced grammar file, I got the following error:

Java Compiler Compiler Version 4.0 (Parser Generator)
(type "javacc" with no arguments for help)
Reading from file xpath2.jj . . .
org.javacc.parser.ParseException: Encountered "<<" at line 220, column 3.
Was expecting one of:
   <STRING_LITERAL> ...
   "<" ...

Detected 1 errors and 0 warnings.

There seems to be some problem with the code posted at Apache Xalan
site. Can someone please tell what is the problem happening, and how
it can be rectified?

--
Regards,
Mukul Gandhi

http://gandhimukul.tripod.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to