Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tag in tag

1 view
Skip to first unread message

Dietmar Bröcker

unread,
Aug 6, 2001, 11:46:49 AM8/6/01
to
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

unread,
Aug 7, 2001, 9:57:07 AM8/7/01
to
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.

---------
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/

0 new messages