要处理这种情况,可以让处理器查看HTML文档中命名锚点之后的元素。
To handle this situation, have the processor look at the element after the named anchor in the HTML document.
出于这个原因,元素的XSLT模板检查前一个元素,看它是否为命名锚点。
For that reason, the XSLT template for the element checks the previous element to see if it is a named anchor. Here are the templates for the and elements.
如果从新的一页开始,则创建命名锚点的链接将会把用户带到上一页的末尾,这不是我们所期望的。
If the starts on a new page, creating a link to the named anchor takes the user to the end of the previous page, which is not what was intended.
指定following-sibling 轴可确保样式表处理器检查紧随命名锚点之后的元素。
Specifying the following-sibling axis ensures that the style sheet processor checks the element that follows the named anchor.
指定following-sibling 轴可确保样式表处理器检查紧随命名锚点之后的元素。
Specifying the following-sibling axis ensures that the style sheet processor checks the element that follows the named anchor.
应用推荐