Meaningless Drivel is fun!*
The moose likes XML and Related Technologies and the fly likes Java and XSLT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Java and XSLT" Watch "Java and XSLT" New topic
Author

Java and XSLT

Krysty Sullivan
Ranch Hand

Joined: Jun 06, 2002
Posts: 48
I have a java file that extracts values from an XML file and puts the extracted data in an ArrayList. If I have an XSL file and make use of xmlns:java="http://xml.apache.org/xalan/java", how do I retrieve the values of the ArrayList inside this XSL page so that I could create elements containing values of the ArrayList.

Thanks.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
I have always wanted to learn 'extensions' but never go around to learn that part of the technology. While I don't have a direct answer to your question, I have in the recent past (in the last couple of months) seen a post here that used the Date (DateFormatter or Formatter?) Java class to reformat the Date value. Please search and see if that XSL could point you in the direction you are heading...sorry not the best answer, but well - thats the best I got for now.

- m


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Krysty Sullivan
Ranch Hand

Joined: Jun 06, 2002
Posts: 48
thanks madhav!
 
 
subject: Java and XSLT
 
Similar Threads
Need your's Help
Reading Arraylist in XSL
Associating 1 XSL file with many XML files
using a static function in XSL
Can we use xsl to remove substring methods from java file?