]> granicus.if.org Git - docbook-dsssl/commitdiff
Bug #462830: allow %p in templates
authorNorman Walsh <ndw@nwalsh.com>
Sat, 22 Sep 2001 15:05:29 +0000 (15:05 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sat, 22 Sep 2001 15:05:29 +0000 (15:05 +0000)
xsl/fo/xref.xsl
xsl/html/xref.xsl

index 581413d21d10b0565852e618f7f718e51b5064f9..c7228500b6f32bcb61c1bf3b35100cc6a1e2bcf9 100644 (file)
   </xsl:if>
 </xsl:template>
 
+<xsl:template match="*" mode="pagenumber.markup">
+  <fo:page-number-citation ref-id="{@id}"/>
+</xsl:template>
+
 </xsl:stylesheet>
index 3973ba7eee84ef7a3a290d6fa57f6daafefc7edc..a47bf28239580b35010fcd5b0b75f42e5dda28ab 100644 (file)
   <xsl:call-template name="inline.monoseq"/>
 </xsl:template>
 
+<xsl:template match="*" mode="pagenumber.markup">
+  <xsl:message>
+    <xsl:text>Page numbers make no sense in HTML! (Don't use %p in templates)</xsl:text>
+  </xsl:message>
+</xsl:template>
+
 </xsl:stylesheet>