[Home] [By Thread] [By Date] [Recent Entries]
Hi Roelof,
This time, I'm not late ! I don't see any difficulty to get the HTML ouput, it's just in the same order than the XML. I would actually - match the root "menu" element to make the html, head and body elements, - then match "section" to make the "div id=firstpane" (be carefull with id unicity if the xml contains many sections) and his skeleton i.e "menu_head" and "menu_body" - then match "year" to fullfill menu_head - then "month" to construct the links - and ignoring entry But maybe the problem is about converting numerical month values to litterals ones ? To do this, you have to write somewhere the correspondance "numeric - litteral". You have 2 options : - either in an external xml file (i think this kind of file is call "authority list") => then reading the file from your XSL (using document() function, or aggregate it before with xproc/cocoon... many solutions here) - or within your XSLT : - with a test (choose/when/otherwise..) but this is not handy to maintain - with variable - type nodeset if XSLT1 - containing a sequence (XSLT2) Hope this help, Matthieu Le 05/01/2012 11:33, Roelof Wobben a C)crit :
-- Matthieu Ricaud 05 45 37 08 90 NeoLibris
|

Cart



