Subject:Creating an expression - xalan-javascript problem Author:Giuseppe Cardon Date:23 May 2005 11:46 AM
I have a problem. I have to create with a "for-each" statement an expression that is made dinamically. To solve this problem I have written a javascript code and my application use as processor Xalan with this path com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
When I try to execute I have this error:
Error:Could not find class "UserSpace"
Fatal Error:Can't compile the stylesheet
Subject:Creating an expression - xalan-javascript problem Author:Giuseppe Cardon Date:24 May 2005 03:57 AM
I have a <for each> cycle. At each iteration I have an ID and I have to create a logic expression with all the elements of the iteration .. something like that : (textID1=Costant)AND(textID2=Costant)AND ...
So I have two problem:
1) An IF condition at the beginning because the first iteration don't have the logic prefix
2) I have to add peace of text at each iteration
With a javascript it's very simple of course, but than I have the problem of before. I hope I was clear. Tankz, Giuseppe
This is a part of the javascript function addCondition (I have also a resetExpression to begin the expression and a getExpression to return the value of the expression):
Subject:Creating an expression - xalan-javascript problem Author:Ivan Pedruzzi Date:24 May 2005 07:05 PM
Hi Giuseppe,
You should be able to achive the same result using a recursive template.
The following XSLT iterates concatenates a string using only books
with bookid even.