This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

<P><H1></H1></P> to <P></P><H1></H1>


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]