This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]