 |
 |
 |
Hi All,
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>
I wrote the xslt coding:
<hov:template match="p[@class[.='LegLevel3Amend']]">
<defl>
<defli>
<hov:apply-templates select="text()"></hov:apply-templates>
</defli>
</defl>
</hov:template>
<hov:template match="text()">
<hov:value-of select="substring-before(.,' ')"></hov:value-of>
<termd>
<hov:value-of select="substring-before(substring-after(.,'
“'),'”')"></hov:value-of>
</termd> <dif>
<hov:value-of select="substring-after(.,'” ')"></hov:value-of>
</dif>
</hov:template>
I got the output from xslt executed
<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
Thanks,
Selva
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@l...>
--~--
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |