Re: [xsl] How to get comments to indent on their own line in XML output?

Subject: Re: [xsl] How to get comments to indent on their own line in XML output?
From: "M. David Peterson" <m.david@xxxxxxxxxxxxx>
Date: Sun, 06 Jul 2008 04:41:32 -0600
On Sun, 06 Jul 2008 04:08:51 -0600, David Carlisle <davidc@xxxxxxxxx> wrote:

<xsl:text>&#10;</xsl:text>
<xsl:comment select="'Here<xsl:text>&#10;</xsl:text>xu is my comment.'" />
<xsl:text>&#10;</xsl:text>

I assume you meant:


<xsl:text>&#10;</xsl:text>
<xsl:comment>Here &#10; is my comment.</xsl:comment>
<xsl:text>&#10;</xsl:text>

Either that, or I missed the errata for both the XML and XSLT specs that allow embedding markup into attributes and the addition of the select attribute to xsl:comment, respectively. ;-)

--
/M:D

M. David Peterson
Co-Founder & Chief Architect, 3rd&Urban, LLC
Email: m.david@xxxxxxxxxxxxxxx | m.david@xxxxxx
Mobile: (206) 999-0588
http://3rdandUrban.com | http://amp.fm | http://www.oreillynet.com/pub/au/2354


Current Thread