|
Subject: <P><H1></H1></P> to <P></P><H1></H1> From: Rainer.Jung@xxxxxxxxxxxx Date: Mon, 9 Oct 2000 09:51:47 +0200 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: Merge two XML files of same str, Joshua Allen | Thread | Re: <P><H1></H1></P> to <P></P><H1>, Jeni Tennison |
| RE: Merge two XML files of same str, Joshua Allen | Date | Out of topic question - Microsoft S, Bovone Stefano |
| Month |