Subject: Re: [xsl] How to get comments to indent on their own line in XML output? From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx> Date: Tue, 8 Jul 2008 10:37:42 +0100 |
> Yes, understood that comments will not be treated like elements by XSLT in XML output. > > What interests me is the least inelegant way of doing this "by hand", as you mention. Do they really have to be standard comments <!-- --> ? you could just use an element, like: <c:omment> </c:omment> (without such a daft name) You could argue that for future processing, javadoc style, using an element is the better approach anyway... Failing that, I think you will have to do two separate transforms to allow the serializer to do its indenting, you can't do it in a single transform. -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to get comments to in, alan . painter | Thread | Re: [xsl] How to get comments to in, Wendell Piez |
Re: [xsl] Copy results, Steven Ericsson-Zeni | Date | RE: [xsl] Copy results, Michael Kay |
Month |