Subject:Correct my substring function coding Author:Selva Ganesh Date:06 May 2009 04:41 AM
This is my input:
<p class="LegLevel3Amend">“ “the Framework Directive” means Directive 2007/46/EC of the European Parliament and of the Council of 5 September 2007 establishing such vehicles(<a class="LegFootnoteRef" href="#f00003" title="Go to footnote 3" id="Backf00003">3</a>);” ;</p>
Actually I expected output:
<defl>
<defli>“<termd href="d001">“the Framework Directive”</termd> means <def id="d001"><cit><loc>Directive 2007/46/EC of the European Parliament and of the Council of 5 September 2007</loc></cit> establishing such vehicles </def>;”;</defli>
<defl><defli>“<termd>the Framework Directive</termd><dif>means Directive 2007/46/EC of the European Parliament and of the Council of 5 September 2007 establishing such vehicles(</dif>);”<termd></termd><dif>;</dif></defli></defl>
The text() function was executed unnecessary location, and remove the some content, can you correct the coding or suggest any other function