|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] <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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








