lfs-ru/stylesheets/lfs-xsl/profile.xsl

52 lines
2.1 KiB
XML
Raw Permalink Normal View History

2024-01-28 20:34:52 +03:00
<?xml version='1.0' encoding='UTF-8'?>
2022-06-01 23:43:00 +03:00
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- Stylesheet to create profiled XML output.
Replaces {docbook-xsl}/profiling/profile.xsl -->
<!-- Include common profiling stylesheet -->
2023-09-24 22:03:33 +03:00
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/profiling/profile-mode.xsl"/>
2022-06-01 23:43:00 +03:00
<!-- This file must be included, because profile-mode uses
templates from it -->
2023-09-24 22:03:33 +03:00
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/common/stripns.xsl"/>
2022-06-01 23:43:00 +03:00
<!-- In two pass processing there is no need for the base URI fixup -->
<xsl:param name="profile.baseuri.fixup" select="false()"/>
<!-- Generate DocBook instance with correct DOCTYPE -->
<xsl:output method="xml"
2024-02-01 20:22:41 +03:00
encoding="UTF-8"
2022-06-01 23:43:00 +03:00
doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
<!-- Profiling parameters:
profile.separator changed from ";" to "," to let it work on the command
line. -->
<xsl:param name="profile.arch" select="''"/>
<xsl:param name="profile.audience" select="''"/>
<xsl:param name="profile.condition" select="''"/>
<xsl:param name="profile.conformance" select="''"/>
<xsl:param name="profile.lang" select="''"/>
<xsl:param name="profile.os" select="''"/>
<xsl:param name="profile.revision" select="''"/>
<xsl:param name="profile.revisionflag" select="''"/>
<xsl:param name="profile.role" select="''"/>
<xsl:param name="profile.security" select="''"/>
<xsl:param name="profile.status" select="''"/>
<xsl:param name="profile.userlevel" select="''"/>
<xsl:param name="profile.vendor" select="''"/>
<xsl:param name="profile.wordsize" select="''"/>
<xsl:param name="profile.attribute" select="''"/>
<xsl:param name="profile.value" select="''"/>
<xsl:param name="profile.separator" select="','"/>
<!-- Call common profiling mode -->
<xsl:template match="/">
<xsl:apply-templates select="." mode="profile"/>
</xsl:template>
</xsl:stylesheet>