2008/6/11 Craig Riley <craig@xxxxxxxxxxxxxxxxxx>:
> Hi thanks for the reply, I have tried using the templates but the problem I
> had was where to call them from? I don't know how to get the replace to work
> within the body of text so to speak.
>
> For example I have:
>
> <p>some text <italic>some italic text</italic></p>
>
> which could happen in numerous paragraphs within the document.
>
> Whenever I "call" the template the peice of italix text is displayed outside
> of the paragraph text! I don't know how to convert the italic tags into
> <i></i> tags and keep it within the main body of text?
So you want a template that matches italic and creates <i>:
<xsl:template match="italic">
<i>xsl:apply-templates /></i>
</xsl:template>
This should be obvious, so you need to read an XSLT tutorial.
| <- Previous | Index | Next -> |
| Re: Embedded bold,italic,anch, Craig Riley
|
Thread |
Re: Embedded bold,italic,anch, Martin Honnen
|
| Re: Embedded bold,italic,anch, Craig Riley
|
Date |
Re: Embedded bold,italic,anch, Martin Honnen
|
|
Month |
|
|