Re: [xsl] Embedded bold,italic,anchors etc.
2008-06-11 04:42:18
Craig Riley wrote:
I have created an XSLT style sheet that does everything I need it to
except for handling embedded text. The XML documents I am transforming
contain the usual italic, bold, superscript, plus hyper links that
need converting into html.
Of course I need them to retain there place in the copy of course.
The key to solve that is usually writing templates for the elements you
want to process where you make sure the necessary transformation happens
and where you use xsl:apply-templates in the body of the template e.g.
<xsl:template match="foo">
<strong>
<xsl:apply-templates/>
</strong>
</xsl:template>
<xsl:template match="bar">
<em>
<xsl:apply-templates/>
</em>
</xsl:template>
--
Martin Honnen
http://JavaScript.FAQTs.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [xsl] Embedded bold,italic,anchors etc., Craig Riley
- Re: [xsl] Embedded bold,italic,anchors etc.,
Martin Honnen <=
- Re: [xsl] Embedded bold,italic,anchors etc., Craig Riley
- Re: [xsl] Embedded bold,italic,anchors etc., Colin Adams
- Re: [xsl] Embedded bold,italic,anchors etc., Martin Honnen
- Re: [xsl] Embedded bold,italic,anchors etc., CyberSpace Industries 2000 Inc.
- Message not available
- Re: [xsl] Embedded bold,italic,anchors etc., Andrew Welch
- RE: [xsl] Embedded bold,italic,anchors etc., Michael Kay
- Re: [xsl] Embedded bold,italic,anchors etc., Craig Riley
|
Previous by Date: |
[xsl] Embedded bold,italic,anchors etc., Craig Riley |
Next by Date: |
Re: [xsl] Embedded bold,italic,anchors etc., Craig Riley |
Previous by Thread: |
[xsl] Embedded bold,italic,anchors etc., Craig Riley |
Next by Thread: |
Re: [xsl] Embedded bold,italic,anchors etc., Craig Riley |
Indexes: |
[Date]
[Thread]
[Top]
[All Lists] |
|
|