C
Cyrille \cns\ Szymanski
Hello,
I have a XML document which is typically :
<course>
<section>
<title>Foo</title>
There comes the text
</section>
<section>
<title>Foo</title>
There comes the text
</section>
</course>
I'd like to indent the "There comes the text" part, but not the title.
This is what I tried, but unfortunately it doesn't work :
<xsl:template match="course/section">
<xsl:apply-templates select="title"/>
<ul>
<xsl:apply-templates select="*[not(title)]"/>
</ul>
</xsl:template>
Could someone give me advice on this. I'd like to avoid the for-if
combination if possible.
Thanks in advance,
I have a XML document which is typically :
<course>
<section>
<title>Foo</title>
There comes the text
</section>
<section>
<title>Foo</title>
There comes the text
</section>
</course>
I'd like to indent the "There comes the text" part, but not the title.
This is what I tried, but unfortunately it doesn't work :
<xsl:template match="course/section">
<xsl:apply-templates select="title"/>
<ul>
<xsl:apply-templates select="*[not(title)]"/>
</ul>
</xsl:template>
Could someone give me advice on this. I'd like to avoid the for-if
combination if possible.
Thanks in advance,