• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java and XSLT

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Krysty Sullivan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks madhav!
 
reply
    Bookmark Topic Watch Topic
  • New Topic