]> granicus.if.org Git - docbook-dsssl/commitdiff
Support person
authorNorman Walsh <ndw@nwalsh.com>
Thu, 15 Jun 2006 20:27:10 +0000 (20:27 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 15 Jun 2006 20:27:10 +0000 (20:27 +0000)
xsl/html/inline.xsl

index 6df5f5f6c8116fee3a0a6d7efc147e228b051fa3..ef872f278eac476a9714c63fd0b193473e900342 100644 (file)
 
 <!-- ==================================================================== -->
 
+<xsl:template match="person">
+  <span class="{name(.)}">
+    <xsl:call-template name="anchor"/>
+    <xsl:apply-templates select="personname"/>
+  </span>
+</xsl:template>
+
 <xsl:template match="personname">
-  <xsl:call-template name="anchor"/>
-  <xsl:call-template name="person.name"/>
+  <span class="{name(.)}">
+    <xsl:call-template name="anchor"/>
+    <xsl:call-template name="person.name"/>
+  </span>
 </xsl:template>
 
 <!-- ==================================================================== -->