RE: [xsl] Output XML doc with XSL doc name in comment - namespace declarations

Subject: RE: [xsl] Output XML doc with XSL doc name in comment - namespace declarations
From: TSchutzerWeissmann@xxxxxxxxxxxxxxxx
Date: Wed, 8 May 2002 11:58:20 +0100
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


Current Thread