Hi, Daniel

Try your test case with command line org.apache.xalan.xslt.Process. If it still produce wrong result, please open a bug report at http://issues.apache.org/jira/secure/Dashboard.jspa . Please attach a valid test case that can demonstrate the problem too.

thanks,

Christine Li
XSLT Development
IBM Toronto Lab
Tel: (905)413-2601
Email: [EMAIL PROTECTED]



"Kalcevich, Daniel" <[EMAIL PROTECTED]>

10/11/2005 11:07 AM

To
Christine Li/Toronto/[EMAIL PROTECTED], xalan-j-users@xml.apache.org
cc
Subject
RE: XSL for-each problem





Ok, I was able to get it up and running using a StreamSource instead of a DOMSource.  One thing I have noticed though is that when  I try to put a nested loop inside the for-each, it does the incorrect looping.  For example, I added:
 
<xsl:for-each select="examples">
- <xsl:value-of select="violation_example" /><br/>
</xsl:for-each>
 
Within the outer for-each and my results went from 3 to 12.  Why?  Also, now since I have removed this logic, it is still showing 12?  Is xalan caching this somewhere?  Help!
 
Daniel
 



From: Christine Li [mailto:[EMAIL PROTECTED]
Sent:
Wednesday, November 09, 2005 12:02 PM
To:
xalan-j-users@xml.apache.org
Subject:
RE: XSL for-each problem

 

>
I just looked.  I made sure that serializer.jar, xalan.jar, xml-apis.jar, xercesImpl.jar are included in the classpath.  Also, I am using Tomcat 5.5.12 and JDK 1.5.0_05.  
>Is there any other dependencies that I should be aware of?  Christine, how did you run the files that I sent you to produce the output below?


I used the command line process, org.apache.xalan.xslt.Process. I thought that Sun JDK 1.5.0 renamed the package name of Xalan classes.  Did you use JAXP APIs inside a Servlet or JSP? Can you try with a stand alone java program to do the transformation?


Christine Li
XSLT Development
IBM Toronto Lab
Tel: (905)413-2601
Email: [EMAIL PROTECTED]

Reply via email to