[mdoc-x-msitomsx] Support legacy and external links.
authorJonathan Pryor <jonpryor@vt.edu>
Thu, 2 Sep 2010 18:41:13 +0000 (14:41 -0400)
committerJonathan Pryor <jonpryor@vt.edu>
Thu, 2 Sep 2010 22:27:11 +0000 (18:27 -0400)
<externalLink/> is mapped to an HTML <a/> (and thus a
<format type="text/html"/> wrapper), while <legacyLink/> is just italicized.

mcs/tools/mdoc/Resources/msitomsx.xsl

index 9399e264601e50992cf02a5ab3065ae5db9c218f..a25728ad068e5496129d8439db4ee1cd8e7dd73e 100644 (file)
     </i>
   </xsl:template>
 
+  <xsl:template match="authoring:externalLink">
+    <format type="text/html">
+      <a href="{authoring:linkUri}">
+        <xsl:value-of select="authoring:linkText" />
+      </a>
+    </format>
+  </xsl:template>
+
+  <xsl:template match="authoring:legacyLink">
+    <i>
+      <xsl:value-of select="." />
+    </i>
+  </xsl:template>
+
   <xsl:template match="authoring:token">
     <xsl:choose>
       <xsl:when test=". = 'compact_v20_long'">