Re: [xsl] grouping problem
Subject: Re: [xsl] grouping problem|
From: Terry Ofner <tofner@xxxxxxxxxxx>
Date: Wed, 28 Nov 2007 10:46:12 -0500
Thank you Ken for your great solution. As always, you are right on.
I do have a more general question/clarification that perhaps someone
Say I want to replace an element and its attributes with a new
element name and attribute(s). Say I also want to keep the mark-up of
the content. I have noticed that if I use <xsl:value-of select "."/>
the content mark-up is stripped out. So with this content:
<para> text, more text, <i>italic text.</i> </para>
The following template would strip out the <i> tags,
<para aim:pstyle='bodytext'><xsl:value-of select "para"/><para>
<para aim:pstyle='bodytext'> text, more text, italic text. </para>
Am I correct?
To avoid stripping content mark-up, I need to use <xsl:copy-of select
"para"/>. When I do that, however, I get two <para> tags.
With copy-of, is it still possible to replace elements and
attributes? I suspect that I am missing something very basic. Some
clarification would be great.
By the way, does anyone else have trouble posting from a Mac using
Mail? All day yesterday my posts were bounced back with this message:
ezmlm-reject: fatal: Sorry, I don't accept messages of MIME Content-
Type 'multipart/alternative' (#5.2.3)