summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex4ht/xttl/docbook.4xt
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-12-06 01:23:33 +0000
committerKarl Berry <karl@freefriends.org>2006-12-06 01:23:33 +0000
commit3b0d4121fbdaa8b4dc48c1aeab08bd63d71d0307 (patch)
treec0e71b65ec445e74e995d7853a367aa30e50f0dd /Master/texmf-dist/tex4ht/xttl/docbook.4xt
parentee72c8e218febb4e5e2395951e36cd91b36aabcd (diff)
tex4ht-1.0.2006_12_04_1651
git-svn-id: svn://tug.org/texlive/trunk@2598 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex4ht/xttl/docbook.4xt')
-rwxr-xr-xMaster/texmf-dist/tex4ht/xttl/docbook.4xt39
1 files changed, 39 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex4ht/xttl/docbook.4xt b/Master/texmf-dist/tex4ht/xttl/docbook.4xt
new file mode 100755
index 00000000000..7c69011fb5d
--- /dev/null
+++ b/Master/texmf-dist/tex4ht/xttl/docbook.4xt
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE xtpipes SYSTEM "xtpipes.dtd" >
+<xtpipes preamble="yes" signature="docbook.4xt (2006-09-18-18:37)">
+ <sax content-handler="xtpipes.lib.ScriptsManager"
+ lexical-handler="xtpipes.lib.ScriptsManagerLH" >
+ <script element="ulink" >
+ <set name="ulink" >
+ <![CDATA[
+ <xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ >
+ <xsl:output omit-xml-declaration = "yes" />
+
+ <xsl:template match=" ulink[
+ @url and starts-with( @url, '#')
+]" >
+ <link>
+ <xsl:attribute name="linkend">
+ <xsl:value-of select=" substring( @url, 2 )" />
+ </xsl:attribute>
+ <xsl:apply-templates select="*|text()|comment()" />
+ </link>
+</xsl:template>
+
+ <xsl:template match="*|@*|text()|comment()" >
+ <xsl:copy>
+ <xsl:apply-templates select="*|@*|text()|comment()" />
+ </xsl:copy>
+ </xsl:template>
+ </xsl:stylesheet>
+]]>
+
+ </set>
+ <xslt name="." xml="." xsl="ulink" />
+</script>
+
+ </sax>
+</xtpipes>
+