haven't tested this but it should work.
<xsl:template match="title">
<p><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="ref">
<em><xsl:apply-templates/></em>
</xsl:template>
rgds,
Conor.
On Mon, 6 Aug 2001 17:46:49 +0200, "Dietmar Bröcker"
<Dietmar.Broec
...@gmx.net> wrote:
>hello,
>i have this xml-code
>-----------------------------
><title>TEXT1<ref>126</ref>TEXT2</title>
>-----------------------------
>and i would like to generate html-code with xslt.
>how can i translate the <ref> tag -within- the <title> tag ?
>the result should be
>-------------------------------------------
><p>TEXT1 <em> 126 </em> TEXT2 </p>
>------------------------------------------
>thanks for help
>servus from germany
>diddi
---------
Conor Ryan,
XML Workshop Ltd,
10 Greenmount Industrial Estate, Harolds Cross, Dublin 12, IRELAND.
Email: cr
...@xmlw.ie
Phone: +353 1 4547811; Fax: +353 1 4731626
Web:
http://www.xmlw.ie/