mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 05:27:39 +00:00
c873d8072e
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8196 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
31 lines
1.6 KiB
XML
31 lines
1.6 KiB
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<!--This file was created automatically by html2xhtml-->
|
|
<!--from the HTML stylesheets. Do not edit this file.-->
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ng="http://docbook.org/docbook-ng" xmlns:db="http://docbook.org/ns/docbook" xmlns:exsl="http://exslt.org/common" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="db ng exsl" version="1.0">
|
|
|
|
<xsl:import href="docbook.xsl"/>
|
|
|
|
<xsl:output method="xml" encoding="UTF-8" indent="no" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
|
|
|
|
<xsl:template match="/">
|
|
<xsl:choose>
|
|
<!-- include extra test for Xalan quirk -->
|
|
<xsl:when test="(function-available('exsl:node-set') or contains(system-property('xsl:vendor'), 'Apache Software Foundation')) and (*/self::ng:* or */self::db:*)">
|
|
<!-- Hack! If someone hands us a DocBook V5.x or DocBook NG document,
|
|
toss the namespace and continue. Someday we'll reverse this logic
|
|
and add the namespace to documents that don't have one.
|
|
But not before the whole stylesheet has been converted to use
|
|
namespaces. i.e., don't hold your breath -->
|
|
<xsl:message>Stripping namespace from DocBook 5 document.</xsl:message>
|
|
<xsl:apply-templates mode="stripNS"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:message terminate="yes">
|
|
<xsl:text>Cannot strip without exsl:node-set.</xsl:text>
|
|
</xsl:message>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|