[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Embedded bold,italic,anchors etc.

Subject: Re: Embedded bold,italic,anchors etc.
From: "Colin Adams" <colinpauladams@xxxxxxxxxxxxxx>
Date: Wed, 11 Jun 2008 13:03:47 +0100
Re:  Embedded bold
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.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.