[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] An (almost) identity stylesheet
Hi list, I am a novice to XSLT, learned mainly form online tutorials. This XSLT thing is killing me. Can't figure out how to transform my doc.xml: <?xml version="1.0" encoding="UTF-8"?> <foo> <bar> <date attrib1='aaaaaaa' attrib2='bbbbbb'>25-02-08</date> ^ <name attrib3='null'>AAAAAAAAAAAAAAA</name> </bar> <bar> <date attrib1='cccccc' attrib2='dddddd'>26-02-08</date> ^ <name attrib4='null'>BBBBBBBBBBBBBBB</name> </bar> </foo> into <?xml version="1.0" encoding="UTF-8"?> <foo> <bar> <date attrib1='aaaaaaa' attrib2='0'>25-02-08</date> ^ <name attrib3='null'>AAAAAAAAAAAAAAA</name> </bar> <bar> <date attrib1='cccccc' attrib2='0'>26-02-08</date> ^ <name attrib4='null'>BBBBBBBBBBBBBBB</name> </bar> </foo> Can somebody please suggest the correct stylesheet? I am blindly typing mainly 'copy' or 'copy-of' in my templates and the output generation mechanics make little sense to me. The docs, comparing to other programing documentation seems hard to understand. Could somebody suggest good docs, please? Regards, Karol
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|