xslt idea: namespace-coloured XML prettyprinter?

Max,

Would it be possible to implement the following using XSLT?
Input: arbitrary XML+namespaces content
Output: XHTML embedding entity-escaped <pre>'d version of the content,
 with each namespace tagged using class="ns1" or similar, and styled in 
 different colours using CSS. For example see
 the 2nd example in http://web.resource.org/rss/1.0/spec#s7

This would be handy for folk documenting multi-namespace RDF apps, amongst
other things.

Just a thought. I'm not sure this is do-able in XSLT though...

Dan

Received on Monday, 24 February 2003 08:18:01 UTC