This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
<P><H1></H1></P> to <P></P><H1></H1>
- To: xsl-list at mulberrytech dot com
- Subject: <P><H1></H1></P> to <P></P><H1></H1>
- From: Rainer dot Jung at prosieben dot de
- Date: Mon, 9 Oct 2000 09:51:47 +0200
- Reply-To: xsl-list at mulberrytech dot com
Hi!
I'm trying to convert something like
<P>Text1<H1>Head1</H1>Text2<H1>Head2</H1>Text3</P>
to
<P>Text1</P>
<H1>Head1</H1>
<P>Text2</P>
<H1>Head2</H1>
<P>Text3</P>
I tried something like
<xsl:template match="P">
<xsl:for-each match=".">
<xsl:chose>
<xsl:when test="H1">
<H1><xsl:apply-templates></H1>
</xsl:when>
<xsl:otherwise>
<P><xsl:apply-templates></P>
</xsl:otherwise>
<xsl:chose>
</xsl:for-each>
</xsl:template>
Of course, i get errors.
I think someone can give me a hint, ...
Greetings,
Rainer
--
I never make any misteaks
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list