[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Move Text
On 09/04/2024 06:23, Byomokesh Sahoo sahoo.byomokesh@xxxxxxxxx wrote:
Hi, I think it might work to use a key e.g. B <xsl:key name="ft" match="div/p[@class = 'FootnoteText']" use="sup"/> B <xsl:template match="a[matches(@href, '#_ftn[0-9]+') and sup]"> B B B <xsl:copy-of select="key('ft', sup)"/> B </xsl:template> B <xsl:template match="div[p[@class = 'FootnoteText']]"/> B <xsl:mode on-no-match="shallow-copy"/> That would replace the <a href="#_ftnX"><sup>[X]</sup></a> elements with the referenced p class="FootnotText". I haven't been able to figure from the simple example sample why there is also a <a name="_ftnref1"/> for the first footnote reference but not for the second. Perhaps add an empty <xsl:template match="a[matches(@name, '_ftnref[0-9]+')]"/>.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|