aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/lfs-xsl/pdf/lfs-xref.xsl
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2024-01-18 14:57:54 +0800
committerXi Ruoyao <xry111@xry111.site>2024-01-18 15:03:54 +0800
commit3626aa30487772be32d2b6ca591137ce88e9d616 (patch)
tree0c80b958cdfed7bc8f5444c61fe9c022f4308041 /stylesheets/lfs-xsl/pdf/lfs-xref.xsl
parent270b1732aa815623cc4f20a9b516099ce82eb313 (diff)
Use UTF-8 characters instead of &#...;
This is done via: find -name \*.xml -or -name \*.xsl | xargs python3 utf8ize.py with https://linuxfromscratch.org/~xry111/utf8ize.py.
Diffstat (limited to 'stylesheets/lfs-xsl/pdf/lfs-xref.xsl')
-rw-r--r--stylesheets/lfs-xsl/pdf/lfs-xref.xsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/stylesheets/lfs-xsl/pdf/lfs-xref.xsl b/stylesheets/lfs-xsl/pdf/lfs-xref.xsl
index 03f935bee..d14e49b22 100644
--- a/stylesheets/lfs-xsl/pdf/lfs-xref.xsl
+++ b/stylesheets/lfs-xsl/pdf/lfs-xref.xsl
@@ -23,8 +23,8 @@
<!-- is the @xlink:href a local idref link? -->
<xsl:param name="xlink.idref">
<xsl:if test="starts-with($xhref,'#')
- and (not(contains($xhref,'&#40;'))
- or starts-with($xhref, '#xpointer&#40;id&#40;'))">
+ and (not(contains($xhref,'('))
+ or starts-with($xhref, '#xpointer(id('))">
<xsl:call-template name="xpointer.idref">
<xsl:with-param name="xpointer" select="$xhref"/>
</xsl:call-template>