Click here to Skip to main content
13,354,132 members (57,856 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have one string in XML ,I need to read it and xtract the data only.The string is

XML string
<div id="questionText"><![CDATA[<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="HMAvenir" SIZE="20" COLOR="#000000" LETTERSPACING="0" KERNING="1"><B>3.  </B>Which animal can see in the dark?</FONT></P></TEXTFORMAT>]]></div>


I need the desired out put using xslt as
3. Which animal can see in the dark?

The value for KERNING="1" in xml string can be changed,it could be 0,1,2...
Following XSLT syntax I am writing but not getting the desired result,could you please help me

XSLT syntax
<xsl:value-of select="substring-before(substring-after(.,'KERNING=&#034;/*/&#034;&gt;'),'&lt;/FONT&gt;')"/>


Any help will be appreciated

Posted 3-Jul-12 22:08pm
Updated 3-Jul-12 22:09pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.180111.1 | Last Updated 4 Jul 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100