Format property links consistently.
authorCameron McCormack <cam@mcc.id.au>
Sun, 27 May 2012 16:13:49 +1000
changeset 28 d154f3fcbf2b
parent 27 3ec73850b2e3
child 29 c0f94921f354
Format property links consistently.
publish.xsl
--- a/publish.xsl	Sun May 27 12:24:45 2012 +1000
+++ b/publish.xsl	Sun May 27 16:13:49 2012 +1000
@@ -1549,17 +1549,15 @@
     </xsl:choose>
   </xsl:function>
 
-  <xsl:function name='x:property-link' as='element()'>
+  <xsl:function name='x:property-link' as='node()*'>
     <xsl:param name='name'/>
     <xsl:param name='referencing-element'/>
     <xsl:variable name='property' select='x:lookup-property($name)'/>
     <xsl:choose>
       <xsl:when test='$property'>
-        <a href='{$property/@href}'>
-          <span class='property'>
-            <xsl:value-of select='concat("‘", $name, "’")'/>
-          </span>
-        </a>
+        <xsl:text>‘</xsl:text>
+        <a href='{$property/@href}'><code class='property'><xsl:value-of select='$name'/></code></a>
+        <xsl:text>’</xsl:text>
       </xsl:when>
       <xsl:otherwise>
         <xsl:message>Unknown property "<xsl:value-of select='$name'/>" at <xsl:value-of select="concat(base-uri($referencing-element), ' line ', saxon:line-number())"/>.</xsl:message>