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

Find the string and apply the tag

Subject: Find the string and apply the tag
From: "Selvaganesh" <selvaganesh_t@xxxxxxxxxxxxxx>
Date: Wed, 23 Dec 2009 16:20:55 +0530
 Find the string and apply the tag
Hi Team,

Am new in the XSLT regex part, kindly help me, how can I find the string and
apply the tag.

Input file:
<derivations id="Section 111">
<derivation>Subsection (1) was created in drafting (i.e. added by the
drafter of the consolidation and not found in the earlier
legislation)</derivation>.
<derivation>Subsection (2) replaces <sccc:legis-cite sccc:title="Income and
Corporation Taxes Act" sccc:year="1988" sccc:chapter="1" sccc:section="root"
sccc:type="statute">Income and Corporation Taxes Act 1988</sccc:legis-cite>
<sccc:legis-cite sccc:title="Income and Corporation Taxes Act"
sccc:year="1988" sccc:chapter="1" sccc:section="" sccc:type="statute">Sch.5
para.8(6).</sccc:legis-cite></derivation>
<derivation>Subsection (3) replaces <sccc:legis-cite sccc:title="Income and
Corporation Taxes Act" sccc:year="1988" sccc:chapter="1" sccc:section="root"
sccc:type="statute">Income and Corporation Taxes Act 1988</sccc:legis-cite>
<sccc:legis-cite sccc:title="Income and Corporation Taxes Act"
sccc:year="1988" sccc:chapter="1" sccc:section="" sccc:type="statute">Sch.5
para.3(12).</sccc:legis-cite></derivation>
<derivation>Subsection (3) replace <sccc:legis-cite sccc:title="Income and
Corporation Taxes Act" sccc:year="1988" sccc:chapter="1" sccc:section="root"
sccc:type="statute">Income and Corporation Taxes Act 1988</sccc:legis-cite>
<sccc:legis-cite sccc:title="Income and Corporation Taxes Act"
sccc:year="1988" sccc:chapter="1" sccc:section="" sccc:type="statute">Sch.5
para.3(12).</sccc:legis-cite></derivation>
</derivations>

Expected Output:

<root>
<p>Subsection (1) <b>was created in drafting (i.e. added by the drafter of
the consolidation and not found in the earlier legislation)</b>.</p>
<p>Subsection (2) <b>replaces</b> Income and Corporation Taxes Act 1988Sch.5
para.8(6).</p>
<p>Subsection (3) <b>replace</b> Income and Corporation Taxes Act 1988Sch.5
para.3(12).</p>
</root>

Thanks to everyone,
Selva



Confidentiality Notice:  This transmittal is a confidential communication.  If you are not the intended recipient, you are hereby notified that you have received this transmittal in error and that any review, dissemination, distribution or copying of this transmittal is strictly prohibited.  If you have received this communication in error, please notify this office immediately by reply and immediately delete this message and all of its attachments, if any.

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.