Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using Javascript to transform element format

Status
Not open for further replies.

Tamre2

Programmer
Jun 24, 2001
2
US
I was given an XML file and asked to create an XSLT style sheet to properly format it. The only problem I ran across is one that I believe can be handled with a simple Javascript. The XML file pulls data from a database, that we have no control over. The database has several formats that are not as desired in the output. For example--it has .75 for an item that must be formatted as 3/4 in the final output. I understand basically how to write the script, but do not really understand how to include it in the XSLT file, using the element names as such. Are there any examples that you could point me to, to assist? Also, if this is not the way YOU would do it, then what is a preferred method.

Thanks!!
Tamre
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top