• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help in XSL

 
Md Fizal
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have an input XML file in which a node has an attribute value like "20020412", which is nothing but a date.(Century+Year+Month+Day) I have an XSL file to fetch the contents from the XML file and present it. The problem is that, how to get the attribute value like "20020412" and print it like "04/12/2002" format. Is there any function available in XSL? Please help me...
 
Tong Chen
Ranch Hand
Posts: 1011
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. There is a XSLT function you can use:
format-number().
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!