Spurious <a> elements in xmlspec.xsl

I'm finding that spurious <a> elements are being created when I run xmlspec.xsl using Saxon.

For example, see how the anchor on the h3 is cascaded to several p elements following:

<h3><a name="d2e325" id="d2e325">3.3 Relationships with character encoding and directionality</a></h3>
<p><a name="d2e325" id="d2e325">'<span class="qterm">Character encoding</span>' refers to the bytes that are used to represent characters in text. It is important to declare what encoding is being used for your document.</a></p>
<p><a name="d2e325" id="d2e325">In some scripts, such as Arabic and Hebrew, text runs predominantly from right to left. Within that flow, numbers and text from other scripts run from left to right. It is important to adequately specify the intended '<span class="qterm">directionality</span>' of text in a document.</a></p>
<p><a name="d2e325" id="d2e325"><em>Language declarations in HTML and XHTML have nothing to do with character encoding or the direction of text.</em>...

This is really weird.  It also happens with other element combinations after a call to the anchor template in the initial element. Anyone got any clues how to fix it?

RI


============
Richard Ishida
W3C

contact info:
http://www.w3.org/People/Ishida/ 

W3C Internationalization:
http://www.w3.org/International/ 

Publication blog:
http://people.w3.org/rishida/blog/
 

Received on Wednesday, 13 July 2005 16:57:25 UTC