Mike,
Oliver Becker has written a stylesheet that converts xml to html, see
http://www.informatik.hu-berlin.de/~obecker/XSLT/xmlverbatim/xmlverbatim.xsl
.html
He might even have a stylesheet to do exactly what you're trying to do (turn
xml into formatted text). The stylesheet's worth a look because it shows how
to get at namespace declarations - there isn't a direct way.
Instead, for each element you have to run through the namespace axis to see
if there's an item there that isn't in the element's parent's namespace. If
there is, it can only have got there from a declaration in the current
element.
Regards,
Tom Weissmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|