You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Ignat Zapolsky (JIRA)" <xa...@xml.apache.org> on 2005/06/28 10:54:57 UTC

[jira] Created: (XALANJ-2160) XSL fails compilation when using XSLTC and in

XSL fails compilation when using XSLTC and <xsl:element> in <xsl:variable>
--------------------------------------------------------------------------

         Key: XALANJ-2160
         URL: http://issues.apache.org/jira/browse/XALANJ-2160
     Project: XalanJ2
        Type: Bug
  Components: Xalan-extensions, XSLTC, Xalan-interpretive  
    Versions: 2.6    
 Environment: Linux, 
java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
>>>>>>> Xalan Version Xalan Java 2.6.0, <<<<<<<
    Reporter: Ignat Zapolsky


Conversion is run using following command line:
java -Duser.language=en -Duser.country=us  -cp xalan.jar:xercesImpl.jar:xmlParserAPIs.jar org.apache.xalan.xslt.Process -V -XSLTC -in sample.xml -xsl sample.xsl -out result.html
Exception :
org.apache.bcel.generic.ClassGenException: ICONST can be used only for value between -1 and 5: 15
        at org.apache.bcel.generic.ICONST.<init>(ICONST.java:81)
        at org.apache.xalan.xsltc.compiler.Step.translatePredicates(Step.java:386)
        at org.apache.xalan.xsltc.compiler.Step.translate(Step.java:224)
        at org.apache.xalan.xsltc.compiler.AbsoluteLocationPath.translate(AbsoluteLocationPath.java:91)
        at org.apache.xalan.xsltc.compiler.CastExpr.translate(CastExpr.java:231)
        at org.apache.xalan.xsltc.compiler.ValueOf.translate(ValueOf.java:123)
        at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
        at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
        at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
        at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
        at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
        at org.apache.xalan.xsltc.compiler.Template.translate(Template.java:335)
        at org.apache.xalan.xsltc.compiler.TopLevelElement.compile(TopLevelElement.java:56)
        at org.apache.xalan.xsltc.compiler.Mode.compileNamedTemplate(Mode.java:572)
        at org.apache.xalan.xsltc.compiler.Mode.compileTemplates(Mode.java:589)
        at org.apache.xalan.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:841)
        at org.apache.xalan.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:584)
        at org.apache.xalan.xsltc.compiler.Stylesheet.translate(Stylesheet.java:695)
        at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:335)
        at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
        at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:720)
        at org.apache.xalan.xslt.Process.main(Process.java:721)
ERROR:  'ICONST can be used only for value between -1 and 5: 15'
FATAL ERROR:  'Could not compile stylesheet'

But when -XSLTC option omitted everything goes well. It is not an option for us to disable stylesheet compilation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


Re: [jira] Commented: (XALANJ-2160) XSLTC fails with absolute path expression that has one step and a numeric predicate

Posted by Santiago Pericas-Geertsen <Sa...@Sun.COM>.
On Mar 31, 2007, at 5:23 PM, Christopher Sahnwaldt (JIRA) wrote:

>
>     [ https://issues.apache.org/jira/browse/XALANJ-2160? 
> page=com.atlassian.jira.plugin.system.issuetabpanels:comment- 
> tabpanel#action_12485749 ]
>
> Christopher Sahnwaldt commented on XALANJ-2160:
> -----------------------------------------------
>
> Sun says they fixed this bug in their JAXP version of Xalan:
>
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6175602
>
> I guess their patch could be backported to Xalan.

  Here is the patch for someone to review:

https://jaxb2-sources.dev.java.net/source/browse/jaxp-sources/xml- 
xalan/java/src/com/sun/org/apache/xalan/internal/xsltc/compiler/ 
Step.java?r1=1.9&r2=1.10

-- Santiago

>> XSLTC fails with absolute path expression that has one step and a  
>> numeric predicate
>> --------------------------------------------------------------------- 
>> --------------
>>
>>                 Key: XALANJ-2160
>>                 URL: https://issues.apache.org/jira/browse/ 
>> XALANJ-2160
>>             Project: XalanJ2
>>          Issue Type: Bug
>>          Components: XSLTC
>>    Affects Versions: 2.6
>>         Environment: Linux,
>> java version "1.5.0_03"
>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
>> Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
>>>>>>>>> Xalan Version Xalan Java 2.6.0, <<<<<<<
>>            Reporter: Ignat Zapolsky
>>         Attachments: j2160.xml, j2160.xsl, sample.xml, sample.xsl
>>
>>
>> Conversion is run using following command line:
>> java -Duser.language=en -Duser.country=us  -cp  
>> xalan.jar:xercesImpl.jar:xmlParserAPIs.jar  
>> org.apache.xalan.xslt.Process -V -XSLTC -in sample.xml -xsl  
>> sample.xsl -out result.html
>> Exception :
>> org.apache.bcel.generic.ClassGenException: ICONST can be used only  
>> for value between -1 and 5: 15
>>         at org.apache.bcel.generic.ICONST.<init>(ICONST.java:81)
>>         at org.apache.xalan.xsltc.compiler.Step.translatePredicates 
>> (Step.java:386)
>>         at org.apache.xalan.xsltc.compiler.Step.translate 
>> (Step.java:224)
>>         at  
>> org.apache.xalan.xsltc.compiler.AbsoluteLocationPath.translate 
>> (AbsoluteLocationPath.java:91)
>>         at org.apache.xalan.xsltc.compiler.CastExpr.translate 
>> (CastExpr.java:231)
>>         at org.apache.xalan.xsltc.compiler.ValueOf.translate 
>> (ValueOf.java:123)
>>         at  
>> org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents 
>> (SyntaxTreeNode.java:490)
>>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate 
>> (LiteralElement.java:412)
>>         at  
>> org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents 
>> (SyntaxTreeNode.java:490)
>>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate 
>> (LiteralElement.java:412)
>>         at  
>> org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents 
>> (SyntaxTreeNode.java:490)
>>         at org.apache.xalan.xsltc.compiler.Template.translate 
>> (Template.java:335)
>>         at org.apache.xalan.xsltc.compiler.TopLevelElement.compile 
>> (TopLevelElement.java:56)
>>         at  
>> org.apache.xalan.xsltc.compiler.Mode.compileNamedTemplate 
>> (Mode.java:572)
>>         at org.apache.xalan.xsltc.compiler.Mode.compileTemplates 
>> (Mode.java:589)
>>         at  
>> org.apache.xalan.xsltc.compiler.Mode.compileApplyTemplates 
>> (Mode.java:841)
>>         at org.apache.xalan.xsltc.compiler.Stylesheet.compileModes 
>> (Stylesheet.java:584)
>>         at org.apache.xalan.xsltc.compiler.Stylesheet.translate 
>> (Stylesheet.java:695)
>>         at org.apache.xalan.xsltc.compiler.XSLTC.compile 
>> (XSLTC.java:335)
>>         at org.apache.xalan.xsltc.compiler.XSLTC.compile 
>> (XSLTC.java:410)
>>         at  
>> org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates 
>> (TransformerFactoryImpl.java:720)
>>         at org.apache.xalan.xslt.Process.main(Process.java:721)
>> ERROR:  'ICONST can be used only for value between -1 and 5: 15'
>> FATAL ERROR:  'Could not compile stylesheet'
>> But when -XSLTC option omitted everything goes well. It is not an  
>> option for us to disable stylesheet compilation.
>
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xalan-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2160) XSLTC fails with absolute path expression that has one step and a numeric predicate

Posted by "Christopher Sahnwaldt (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485749 ] 

Christopher Sahnwaldt commented on XALANJ-2160:
-----------------------------------------------

Sun says they fixed this bug in their JAXP version of Xalan:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6175602

I guess their patch could be backported to Xalan.

> XSLTC fails with absolute path expression that has one step and a numeric predicate
> -----------------------------------------------------------------------------------
>
>                 Key: XALANJ-2160
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2160
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: XSLTC
>    Affects Versions: 2.6
>         Environment: Linux, 
> java version "1.5.0_03"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
> Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
> >>>>>>> Xalan Version Xalan Java 2.6.0, <<<<<<<
>            Reporter: Ignat Zapolsky
>         Attachments: j2160.xml, j2160.xsl, sample.xml, sample.xsl
>
>
> Conversion is run using following command line:
> java -Duser.language=en -Duser.country=us  -cp xalan.jar:xercesImpl.jar:xmlParserAPIs.jar org.apache.xalan.xslt.Process -V -XSLTC -in sample.xml -xsl sample.xsl -out result.html
> Exception :
> org.apache.bcel.generic.ClassGenException: ICONST can be used only for value between -1 and 5: 15
>         at org.apache.bcel.generic.ICONST.<init>(ICONST.java:81)
>         at org.apache.xalan.xsltc.compiler.Step.translatePredicates(Step.java:386)
>         at org.apache.xalan.xsltc.compiler.Step.translate(Step.java:224)
>         at org.apache.xalan.xsltc.compiler.AbsoluteLocationPath.translate(AbsoluteLocationPath.java:91)
>         at org.apache.xalan.xsltc.compiler.CastExpr.translate(CastExpr.java:231)
>         at org.apache.xalan.xsltc.compiler.ValueOf.translate(ValueOf.java:123)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.Template.translate(Template.java:335)
>         at org.apache.xalan.xsltc.compiler.TopLevelElement.compile(TopLevelElement.java:56)
>         at org.apache.xalan.xsltc.compiler.Mode.compileNamedTemplate(Mode.java:572)
>         at org.apache.xalan.xsltc.compiler.Mode.compileTemplates(Mode.java:589)
>         at org.apache.xalan.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:841)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:584)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.translate(Stylesheet.java:695)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:335)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
>         at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:720)
>         at org.apache.xalan.xslt.Process.main(Process.java:721)
> ERROR:  'ICONST can be used only for value between -1 and 5: 15'
> FATAL ERROR:  'Could not compile stylesheet'
> But when -XSLTC option omitted everything goes well. It is not an option for us to disable stylesheet compilation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2160) XSLTC fails with absolute path expression that has one step and a numeric predicate

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2160?page=all ]

Henry Zongaro updated XALANJ-2160:
----------------------------------

    Attachment: j2160.xsl
                j2160.xml

> XSLTC fails with absolute path expression that has one step and a numeric predicate
> -----------------------------------------------------------------------------------
>
>          Key: XALANJ-2160
>          URL: http://issues.apache.org/jira/browse/XALANJ-2160
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC
>     Versions: 2.6
>  Environment: Linux, 
> java version "1.5.0_03"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
> Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
> >>>>>>> Xalan Version Xalan Java 2.6.0, <<<<<<<
>     Reporter: Ignat Zapolsky
>  Attachments: j2160.xml, j2160.xsl, sample.xml, sample.xsl
>
> Conversion is run using following command line:
> java -Duser.language=en -Duser.country=us  -cp xalan.jar:xercesImpl.jar:xmlParserAPIs.jar org.apache.xalan.xslt.Process -V -XSLTC -in sample.xml -xsl sample.xsl -out result.html
> Exception :
> org.apache.bcel.generic.ClassGenException: ICONST can be used only for value between -1 and 5: 15
>         at org.apache.bcel.generic.ICONST.<init>(ICONST.java:81)
>         at org.apache.xalan.xsltc.compiler.Step.translatePredicates(Step.java:386)
>         at org.apache.xalan.xsltc.compiler.Step.translate(Step.java:224)
>         at org.apache.xalan.xsltc.compiler.AbsoluteLocationPath.translate(AbsoluteLocationPath.java:91)
>         at org.apache.xalan.xsltc.compiler.CastExpr.translate(CastExpr.java:231)
>         at org.apache.xalan.xsltc.compiler.ValueOf.translate(ValueOf.java:123)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.Template.translate(Template.java:335)
>         at org.apache.xalan.xsltc.compiler.TopLevelElement.compile(TopLevelElement.java:56)
>         at org.apache.xalan.xsltc.compiler.Mode.compileNamedTemplate(Mode.java:572)
>         at org.apache.xalan.xsltc.compiler.Mode.compileTemplates(Mode.java:589)
>         at org.apache.xalan.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:841)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:584)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.translate(Stylesheet.java:695)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:335)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
>         at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:720)
>         at org.apache.xalan.xslt.Process.main(Process.java:721)
> ERROR:  'ICONST can be used only for value between -1 and 5: 15'
> FATAL ERROR:  'Could not compile stylesheet'
> But when -XSLTC option omitted everything goes well. It is not an option for us to disable stylesheet compilation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2160) XSL fails compilation when using XSLTC and in

Posted by "Ignat Zapolsky (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2160?page=all ]

Ignat Zapolsky updated XALANJ-2160:
-----------------------------------

    Attachment: sample.xml

Sample XML that should be processed by a XSLT

> XSL fails compilation when using XSLTC and <xsl:element> in <xsl:variable>
> --------------------------------------------------------------------------
>
>          Key: XALANJ-2160
>          URL: http://issues.apache.org/jira/browse/XALANJ-2160
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan-extensions, XSLTC, Xalan-interpretive
>     Versions: 2.6
>  Environment: Linux, 
> java version "1.5.0_03"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
> Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
> >>>>>>> Xalan Version Xalan Java 2.6.0, <<<<<<<
>     Reporter: Ignat Zapolsky
>  Attachments: sample.xml, sample.xsl
>
> Conversion is run using following command line:
> java -Duser.language=en -Duser.country=us  -cp xalan.jar:xercesImpl.jar:xmlParserAPIs.jar org.apache.xalan.xslt.Process -V -XSLTC -in sample.xml -xsl sample.xsl -out result.html
> Exception :
> org.apache.bcel.generic.ClassGenException: ICONST can be used only for value between -1 and 5: 15
>         at org.apache.bcel.generic.ICONST.<init>(ICONST.java:81)
>         at org.apache.xalan.xsltc.compiler.Step.translatePredicates(Step.java:386)
>         at org.apache.xalan.xsltc.compiler.Step.translate(Step.java:224)
>         at org.apache.xalan.xsltc.compiler.AbsoluteLocationPath.translate(AbsoluteLocationPath.java:91)
>         at org.apache.xalan.xsltc.compiler.CastExpr.translate(CastExpr.java:231)
>         at org.apache.xalan.xsltc.compiler.ValueOf.translate(ValueOf.java:123)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.Template.translate(Template.java:335)
>         at org.apache.xalan.xsltc.compiler.TopLevelElement.compile(TopLevelElement.java:56)
>         at org.apache.xalan.xsltc.compiler.Mode.compileNamedTemplate(Mode.java:572)
>         at org.apache.xalan.xsltc.compiler.Mode.compileTemplates(Mode.java:589)
>         at org.apache.xalan.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:841)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:584)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.translate(Stylesheet.java:695)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:335)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
>         at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:720)
>         at org.apache.xalan.xslt.Process.main(Process.java:721)
> ERROR:  'ICONST can be used only for value between -1 and 5: 15'
> FATAL ERROR:  'Could not compile stylesheet'
> But when -XSLTC option omitted everything goes well. It is not an option for us to disable stylesheet compilation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2160) XSL fails compilation when using XSLTC and in

Posted by "Ignat Zapolsky (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2160?page=all ]

Ignat Zapolsky updated XALANJ-2160:
-----------------------------------

    Attachment: sample.xsl

Stylesheet that causes error in XSLTC.

> XSL fails compilation when using XSLTC and <xsl:element> in <xsl:variable>
> --------------------------------------------------------------------------
>
>          Key: XALANJ-2160
>          URL: http://issues.apache.org/jira/browse/XALANJ-2160
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan-extensions, XSLTC, Xalan-interpretive
>     Versions: 2.6
>  Environment: Linux, 
> java version "1.5.0_03"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
> Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
> >>>>>>> Xalan Version Xalan Java 2.6.0, <<<<<<<
>     Reporter: Ignat Zapolsky
>  Attachments: sample.xml, sample.xsl
>
> Conversion is run using following command line:
> java -Duser.language=en -Duser.country=us  -cp xalan.jar:xercesImpl.jar:xmlParserAPIs.jar org.apache.xalan.xslt.Process -V -XSLTC -in sample.xml -xsl sample.xsl -out result.html
> Exception :
> org.apache.bcel.generic.ClassGenException: ICONST can be used only for value between -1 and 5: 15
>         at org.apache.bcel.generic.ICONST.<init>(ICONST.java:81)
>         at org.apache.xalan.xsltc.compiler.Step.translatePredicates(Step.java:386)
>         at org.apache.xalan.xsltc.compiler.Step.translate(Step.java:224)
>         at org.apache.xalan.xsltc.compiler.AbsoluteLocationPath.translate(AbsoluteLocationPath.java:91)
>         at org.apache.xalan.xsltc.compiler.CastExpr.translate(CastExpr.java:231)
>         at org.apache.xalan.xsltc.compiler.ValueOf.translate(ValueOf.java:123)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.Template.translate(Template.java:335)
>         at org.apache.xalan.xsltc.compiler.TopLevelElement.compile(TopLevelElement.java:56)
>         at org.apache.xalan.xsltc.compiler.Mode.compileNamedTemplate(Mode.java:572)
>         at org.apache.xalan.xsltc.compiler.Mode.compileTemplates(Mode.java:589)
>         at org.apache.xalan.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:841)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:584)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.translate(Stylesheet.java:695)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:335)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
>         at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:720)
>         at org.apache.xalan.xslt.Process.main(Process.java:721)
> ERROR:  'ICONST can be used only for value between -1 and 5: 15'
> FATAL ERROR:  'Could not compile stylesheet'
> But when -XSLTC option omitted everything goes well. It is not an option for us to disable stylesheet compilation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2160) XSLTC fails with absolute path expression that has one step and a numeric predicate

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2160?page=comments#action_12314612 ] 

Henry Zongaro commented on XALANJ-2160:
---------------------------------------

Hmmm.  I thought I had a simple fix for this problem, but the output that results with my fix is incorrect, so there must be a second problem.  In the meanwhile, you could try changing the last template in your example stylesheet to the following as a work-around.  That is, change /val[1] and /val[2] to val[1] and val[2], respectively - the leading slash is redundant here.

        <xsl:template match="/" mode="params">
                <xsl:copy-of select="."/>
                <tr>
                        <td>
                                <xsl:value-of select="val[1]"/>
                        </td>
                        <td>
                                <xsl:value-of select="val[2]"/>
                        </td>
                </tr>
        </xsl:template>

> XSLTC fails with absolute path expression that has one step and a numeric predicate
> -----------------------------------------------------------------------------------
>
>          Key: XALANJ-2160
>          URL: http://issues.apache.org/jira/browse/XALANJ-2160
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC
>     Versions: 2.6
>  Environment: Linux, 
> java version "1.5.0_03"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
> Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
> >>>>>>> Xalan Version Xalan Java 2.6.0, <<<<<<<
>     Reporter: Ignat Zapolsky
>  Attachments: j2160.xml, j2160.xsl, sample.xml, sample.xsl
>
> Conversion is run using following command line:
> java -Duser.language=en -Duser.country=us  -cp xalan.jar:xercesImpl.jar:xmlParserAPIs.jar org.apache.xalan.xslt.Process -V -XSLTC -in sample.xml -xsl sample.xsl -out result.html
> Exception :
> org.apache.bcel.generic.ClassGenException: ICONST can be used only for value between -1 and 5: 15
>         at org.apache.bcel.generic.ICONST.<init>(ICONST.java:81)
>         at org.apache.xalan.xsltc.compiler.Step.translatePredicates(Step.java:386)
>         at org.apache.xalan.xsltc.compiler.Step.translate(Step.java:224)
>         at org.apache.xalan.xsltc.compiler.AbsoluteLocationPath.translate(AbsoluteLocationPath.java:91)
>         at org.apache.xalan.xsltc.compiler.CastExpr.translate(CastExpr.java:231)
>         at org.apache.xalan.xsltc.compiler.ValueOf.translate(ValueOf.java:123)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.Template.translate(Template.java:335)
>         at org.apache.xalan.xsltc.compiler.TopLevelElement.compile(TopLevelElement.java:56)
>         at org.apache.xalan.xsltc.compiler.Mode.compileNamedTemplate(Mode.java:572)
>         at org.apache.xalan.xsltc.compiler.Mode.compileTemplates(Mode.java:589)
>         at org.apache.xalan.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:841)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:584)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.translate(Stylesheet.java:695)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:335)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
>         at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:720)
>         at org.apache.xalan.xslt.Process.main(Process.java:721)
> ERROR:  'ICONST can be used only for value between -1 and 5: 15'
> FATAL ERROR:  'Could not compile stylesheet'
> But when -XSLTC option omitted everything goes well. It is not an option for us to disable stylesheet compilation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2160) XSLTC fails with absolute path expression that has one step and a numeric predicate

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XALANJ-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488081 ] 

Henry Zongaro commented on XALANJ-2160:
---------------------------------------

Santiago reported in [1]:

============================================
  Here is the patch for someone to review:

https://jaxb2-sources.dev.java.net/source/browse/jaxp-sources/xml-xalan/java/src/com/sun/org/apache/xalan/internal/xsltc/compiler/Step.java?r1=1.9&r2=1.10

-- Santiago
============================================

I took a look, and I believe the patch correctly resolves the ClassGenException.  However, I think this is the same patch that I mentioned I had in my comment above [2] and has the same problem - after applying it, the output produced by my reduced test case (j2160.xsl applied to j2160.xml) is incorrect.  So there's still a second bug here that we need to resolve.

[1] http://mail-archives.apache.org/mod_mbox/xml-xalan-dev/200704.mbox/%3c851FE92D-D529-4030-BCB2-2A459243C934@sun.com%3e
[2] http://issues.apache.org/jira/browse/XALANJ-2160#action_12314612

> XSLTC fails with absolute path expression that has one step and a numeric predicate
> -----------------------------------------------------------------------------------
>
>                 Key: XALANJ-2160
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2160
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: XSLTC
>    Affects Versions: 2.6
>         Environment: Linux, 
> java version "1.5.0_03"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
> Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
> >>>>>>> Xalan Version Xalan Java 2.6.0, <<<<<<<
>            Reporter: Ignat Zapolsky
>         Attachments: j2160.xml, j2160.xsl, sample.xml, sample.xsl
>
>
> Conversion is run using following command line:
> java -Duser.language=en -Duser.country=us  -cp xalan.jar:xercesImpl.jar:xmlParserAPIs.jar org.apache.xalan.xslt.Process -V -XSLTC -in sample.xml -xsl sample.xsl -out result.html
> Exception :
> org.apache.bcel.generic.ClassGenException: ICONST can be used only for value between -1 and 5: 15
>         at org.apache.bcel.generic.ICONST.<init>(ICONST.java:81)
>         at org.apache.xalan.xsltc.compiler.Step.translatePredicates(Step.java:386)
>         at org.apache.xalan.xsltc.compiler.Step.translate(Step.java:224)
>         at org.apache.xalan.xsltc.compiler.AbsoluteLocationPath.translate(AbsoluteLocationPath.java:91)
>         at org.apache.xalan.xsltc.compiler.CastExpr.translate(CastExpr.java:231)
>         at org.apache.xalan.xsltc.compiler.ValueOf.translate(ValueOf.java:123)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.Template.translate(Template.java:335)
>         at org.apache.xalan.xsltc.compiler.TopLevelElement.compile(TopLevelElement.java:56)
>         at org.apache.xalan.xsltc.compiler.Mode.compileNamedTemplate(Mode.java:572)
>         at org.apache.xalan.xsltc.compiler.Mode.compileTemplates(Mode.java:589)
>         at org.apache.xalan.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:841)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:584)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.translate(Stylesheet.java:695)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:335)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
>         at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:720)
>         at org.apache.xalan.xslt.Process.main(Process.java:721)
> ERROR:  'ICONST can be used only for value between -1 and 5: 15'
> FATAL ERROR:  'Could not compile stylesheet'
> But when -XSLTC option omitted everything goes well. It is not an option for us to disable stylesheet compilation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2160) XSLTC fails with absolute path expression that has one step and a numeric predicate

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2160?page=all ]

Brian Minchau updated XALANJ-2160:
----------------------------------

    fix-priority: fp2

Set to fp2, per the JIRA meeting on July 12, 2005

> XSLTC fails with absolute path expression that has one step and a numeric predicate
> -----------------------------------------------------------------------------------
>
>          Key: XALANJ-2160
>          URL: http://issues.apache.org/jira/browse/XALANJ-2160
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC
>     Versions: 2.6
>  Environment: Linux, 
> java version "1.5.0_03"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
> Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
> >>>>>>> Xalan Version Xalan Java 2.6.0, <<<<<<<
>     Reporter: Ignat Zapolsky
>  Attachments: j2160.xml, j2160.xsl, sample.xml, sample.xsl
>
> Conversion is run using following command line:
> java -Duser.language=en -Duser.country=us  -cp xalan.jar:xercesImpl.jar:xmlParserAPIs.jar org.apache.xalan.xslt.Process -V -XSLTC -in sample.xml -xsl sample.xsl -out result.html
> Exception :
> org.apache.bcel.generic.ClassGenException: ICONST can be used only for value between -1 and 5: 15
>         at org.apache.bcel.generic.ICONST.<init>(ICONST.java:81)
>         at org.apache.xalan.xsltc.compiler.Step.translatePredicates(Step.java:386)
>         at org.apache.xalan.xsltc.compiler.Step.translate(Step.java:224)
>         at org.apache.xalan.xsltc.compiler.AbsoluteLocationPath.translate(AbsoluteLocationPath.java:91)
>         at org.apache.xalan.xsltc.compiler.CastExpr.translate(CastExpr.java:231)
>         at org.apache.xalan.xsltc.compiler.ValueOf.translate(ValueOf.java:123)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.Template.translate(Template.java:335)
>         at org.apache.xalan.xsltc.compiler.TopLevelElement.compile(TopLevelElement.java:56)
>         at org.apache.xalan.xsltc.compiler.Mode.compileNamedTemplate(Mode.java:572)
>         at org.apache.xalan.xsltc.compiler.Mode.compileTemplates(Mode.java:589)
>         at org.apache.xalan.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:841)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:584)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.translate(Stylesheet.java:695)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:335)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
>         at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:720)
>         at org.apache.xalan.xslt.Process.main(Process.java:721)
> ERROR:  'ICONST can be used only for value between -1 and 5: 15'
> FATAL ERROR:  'Could not compile stylesheet'
> But when -XSLTC option omitted everything goes well. It is not an option for us to disable stylesheet compilation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2160) XSLTC fails with absolute path expression that has one step and a numeric predicate

Posted by "Christopher Sahnwaldt (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2160?page=comments#action_12433820 ] 
            
Christopher Sahnwaldt commented on XALANJ-2160:
-----------------------------------------------

A workaround is simply to use 

select="/val[position()=1]" 

which AFAIK is simply the long form of 

select="/val[1]" 

and does exactly the same thing.

> XSLTC fails with absolute path expression that has one step and a numeric predicate
> -----------------------------------------------------------------------------------
>
>                 Key: XALANJ-2160
>                 URL: http://issues.apache.org/jira/browse/XALANJ-2160
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: XSLTC
>    Affects Versions: 2.6
>         Environment: Linux, 
> java version "1.5.0_03"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
> Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
> >>>>>>> Xalan Version Xalan Java 2.6.0, <<<<<<<
>            Reporter: Ignat Zapolsky
>         Attachments: j2160.xml, j2160.xsl, sample.xml, sample.xsl
>
>
> Conversion is run using following command line:
> java -Duser.language=en -Duser.country=us  -cp xalan.jar:xercesImpl.jar:xmlParserAPIs.jar org.apache.xalan.xslt.Process -V -XSLTC -in sample.xml -xsl sample.xsl -out result.html
> Exception :
> org.apache.bcel.generic.ClassGenException: ICONST can be used only for value between -1 and 5: 15
>         at org.apache.bcel.generic.ICONST.<init>(ICONST.java:81)
>         at org.apache.xalan.xsltc.compiler.Step.translatePredicates(Step.java:386)
>         at org.apache.xalan.xsltc.compiler.Step.translate(Step.java:224)
>         at org.apache.xalan.xsltc.compiler.AbsoluteLocationPath.translate(AbsoluteLocationPath.java:91)
>         at org.apache.xalan.xsltc.compiler.CastExpr.translate(CastExpr.java:231)
>         at org.apache.xalan.xsltc.compiler.ValueOf.translate(ValueOf.java:123)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.Template.translate(Template.java:335)
>         at org.apache.xalan.xsltc.compiler.TopLevelElement.compile(TopLevelElement.java:56)
>         at org.apache.xalan.xsltc.compiler.Mode.compileNamedTemplate(Mode.java:572)
>         at org.apache.xalan.xsltc.compiler.Mode.compileTemplates(Mode.java:589)
>         at org.apache.xalan.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:841)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:584)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.translate(Stylesheet.java:695)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:335)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
>         at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:720)
>         at org.apache.xalan.xslt.Process.main(Process.java:721)
> ERROR:  'ICONST can be used only for value between -1 and 5: 15'
> FATAL ERROR:  'Could not compile stylesheet'
> But when -XSLTC option omitted everything goes well. It is not an option for us to disable stylesheet compilation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-2160) XSLTC fails with absolute path expression that has one step and a numeric predicate

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2160?page=comments#action_12314610 ] 

Henry Zongaro commented on XALANJ-2160:
---------------------------------------

Attached reduced stylesheet [1] and input document.[2]  Note that the predicate in the path expression that causes the problem makes much less sense in the context of this reduced test than it does in the original test.

[1] http://issues.apache.org/jira/secure/attachment/12310984/j2160.xsl
[2] http://issues.apache.org/jira/secure/attachment/12310985/j2160.xml

> XSLTC fails with absolute path expression that has one step and a numeric predicate
> -----------------------------------------------------------------------------------
>
>          Key: XALANJ-2160
>          URL: http://issues.apache.org/jira/browse/XALANJ-2160
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC
>     Versions: 2.6
>  Environment: Linux, 
> java version "1.5.0_03"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
> Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
> >>>>>>> Xalan Version Xalan Java 2.6.0, <<<<<<<
>     Reporter: Ignat Zapolsky
>  Attachments: j2160.xml, j2160.xsl, sample.xml, sample.xsl
>
> Conversion is run using following command line:
> java -Duser.language=en -Duser.country=us  -cp xalan.jar:xercesImpl.jar:xmlParserAPIs.jar org.apache.xalan.xslt.Process -V -XSLTC -in sample.xml -xsl sample.xsl -out result.html
> Exception :
> org.apache.bcel.generic.ClassGenException: ICONST can be used only for value between -1 and 5: 15
>         at org.apache.bcel.generic.ICONST.<init>(ICONST.java:81)
>         at org.apache.xalan.xsltc.compiler.Step.translatePredicates(Step.java:386)
>         at org.apache.xalan.xsltc.compiler.Step.translate(Step.java:224)
>         at org.apache.xalan.xsltc.compiler.AbsoluteLocationPath.translate(AbsoluteLocationPath.java:91)
>         at org.apache.xalan.xsltc.compiler.CastExpr.translate(CastExpr.java:231)
>         at org.apache.xalan.xsltc.compiler.ValueOf.translate(ValueOf.java:123)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.Template.translate(Template.java:335)
>         at org.apache.xalan.xsltc.compiler.TopLevelElement.compile(TopLevelElement.java:56)
>         at org.apache.xalan.xsltc.compiler.Mode.compileNamedTemplate(Mode.java:572)
>         at org.apache.xalan.xsltc.compiler.Mode.compileTemplates(Mode.java:589)
>         at org.apache.xalan.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:841)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:584)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.translate(Stylesheet.java:695)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:335)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
>         at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:720)
>         at org.apache.xalan.xslt.Process.main(Process.java:721)
> ERROR:  'ICONST can be used only for value between -1 and 5: 15'
> FATAL ERROR:  'Could not compile stylesheet'
> But when -XSLTC option omitted everything goes well. It is not an option for us to disable stylesheet compilation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2160) XSLTC fails with absolute path expression that has one step and a numeric predicate

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2160?page=all ]

Henry Zongaro updated XALANJ-2160:
----------------------------------

      Summary: XSLTC fails with absolute path expression that has one step and a numeric predicate  (was: XSL fails compilation when using XSLTC and <xsl:element> in <xsl:variable>)
    Component:     (was: Xalan-extensions)
                   (was: Xalan-interpretive)

Revised description and components.

> XSLTC fails with absolute path expression that has one step and a numeric predicate
> -----------------------------------------------------------------------------------
>
>          Key: XALANJ-2160
>          URL: http://issues.apache.org/jira/browse/XALANJ-2160
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC
>     Versions: 2.6
>  Environment: Linux, 
> java version "1.5.0_03"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
> Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
> >>>>>>> Xalan Version Xalan Java 2.6.0, <<<<<<<
>     Reporter: Ignat Zapolsky
>  Attachments: sample.xml, sample.xsl
>
> Conversion is run using following command line:
> java -Duser.language=en -Duser.country=us  -cp xalan.jar:xercesImpl.jar:xmlParserAPIs.jar org.apache.xalan.xslt.Process -V -XSLTC -in sample.xml -xsl sample.xsl -out result.html
> Exception :
> org.apache.bcel.generic.ClassGenException: ICONST can be used only for value between -1 and 5: 15
>         at org.apache.bcel.generic.ICONST.<init>(ICONST.java:81)
>         at org.apache.xalan.xsltc.compiler.Step.translatePredicates(Step.java:386)
>         at org.apache.xalan.xsltc.compiler.Step.translate(Step.java:224)
>         at org.apache.xalan.xsltc.compiler.AbsoluteLocationPath.translate(AbsoluteLocationPath.java:91)
>         at org.apache.xalan.xsltc.compiler.CastExpr.translate(CastExpr.java:231)
>         at org.apache.xalan.xsltc.compiler.ValueOf.translate(ValueOf.java:123)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.LiteralElement.translate(LiteralElement.java:412)
>         at org.apache.xalan.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
>         at org.apache.xalan.xsltc.compiler.Template.translate(Template.java:335)
>         at org.apache.xalan.xsltc.compiler.TopLevelElement.compile(TopLevelElement.java:56)
>         at org.apache.xalan.xsltc.compiler.Mode.compileNamedTemplate(Mode.java:572)
>         at org.apache.xalan.xsltc.compiler.Mode.compileTemplates(Mode.java:589)
>         at org.apache.xalan.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:841)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:584)
>         at org.apache.xalan.xsltc.compiler.Stylesheet.translate(Stylesheet.java:695)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:335)
>         at org.apache.xalan.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
>         at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:720)
>         at org.apache.xalan.xslt.Process.main(Process.java:721)
> ERROR:  'ICONST can be used only for value between -1 and 5: 15'
> FATAL ERROR:  'Could not compile stylesheet'
> But when -XSLTC option omitted everything goes well. It is not an option for us to disable stylesheet compilation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org