Hi,
i've the below piece of xml code.
HTML Code:
<para>
A testator may by will appoint any number of executors that he chooses, but s.25 of the PAO provides that probate or administration shall not be granted to more than four persons in respect of the same property. Where only one or some of the executors apply for probate, power can be reserved to the other or others to apply subsequently if necessary to complete the administration of the estate. As noted above (para.2.027), where this happens the death of the proving executor will not result in a transmission of the office to his executor. The originally appointed other executor will, if he subsequently proves, prevent the necessity for any chain of executors. </para>
here i want to select the number only if there are 3 numbers after '.'. but not less than it or greater than it. i've using the below template, but it is not giving the right result.
HTML Code:
<xsl:template match="para">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="text()">
<xsl:choose>
<xsl:when test="not[contains(substring(substring-after(text(),'.'),1,3),'')]">
<a href="substring(substring-after(text(),'.'),1,3)">
<xsl:value-of select="substring(substring-after(text(),'.'),1,3)"/>
</a>
</xsl:when>
</xsl:choose>
</xsl:template>
please let me know how to achieve this.
Thanks