This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Java and XSLT" Watch "Java and XSLT" New topic

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="", how do I retrieve the values of the ArrayList inside this XSL page so that I could create elements containing values of the ArrayList.

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
Krysty Sullivan
Ranch Hand

Joined: Jun 06, 2002
Posts: 48
thanks madhav!
I agree. Here's the link:
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?