This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Selective output of half a tag?
- From: Antonio Fiol <fiol at w3ping dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 11 Jun 2002 13:04:36 +0200
- Subject: Re: [xsl] Selective output of half a tag?
- References: <1023792614.16066.10.camel@walter>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
Am I missing something big, or you need:
<mytag>
<xsl:apply-templates/>
</mytag>
???
Antonio Fiol
Graham Ashton wrote:
Hi.
I'm having problems getting my xslt processor to cope with things like
this:
<xsl:if test="self::foo">
<mytag>
</xsl:if>
<xsl:apply-templates/>
<xsl:if test="count(following-sibling::foo)=0">
</mytag>
</xsl:if>
It fails because (I presume) the above XSL isn't well formed, as
<mytag/> is split in half and closed in the wrong place.
I'm searching for a more sensible way to wrap the output of the call to
apply-templates with another tag.
Am I thinking about this all wrong, or is there a simple way to force
the processor to treat <mytag> and </mytag> as plain text?
Cheers.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list