Debian Codegraph @

docbook-xsl-ns/profiling/profile.xsl

raw symbols SCIP
1 <xsl:stylesheet exclude-result-prefixes="d"
2 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:d="http://docbook.org/ns/docbook"
4 version="1.0">
5
6 <!-- Include common profiling stylesheet -->
7 <xsl:import href="profile-mode.xsl"/>
8
9 <!-- This file must be included, because profile-mode is using templates from it -->
10 <xsl:import href="../common/addns.xsl"/>
11
12 <!-- In the two pass processing there is no need for base URI fixup -->
13 <xsl:param name="profile.baseuri.fixup" select="false()"/>
14
15 <!-- If you need to validate profiled content against DTD,
16 create customization that will import this stylesheet and
17 will use xsl:output (see example bellow) to output reference
18 to the desired DTD version. -->
19 <!-- Generate DocBook instance with correct DOCTYPE -->
20 <!--
21 <xsl:output method="xml"
22 doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
23 doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
24 -->
25
26 <!-- Profiling parameters -->
27 <xsl:param name="profile.arch" select="''"/>
28 <xsl:param name="profile.audience" select="''"/>
29 <xsl:param name="profile.condition" select="''"/>
30 <xsl:param name="profile.conformance" select="''"/>
31 <xsl:param name="profile.lang" select="''"/>
32 <xsl:param name="profile.os" select="''"/>
33 <xsl:param name="profile.outputformat" select="''"/>
34 <xsl:param name="profile.revision" select="''"/>
35 <xsl:param name="profile.revisionflag" select="''"/>
36 <xsl:param name="profile.role" select="''"/>
37 <xsl:param name="profile.security" select="''"/>
38 <xsl:param name="profile.status" select="''"/>
39 <xsl:param name="profile.userlevel" select="''"/>
40 <xsl:param name="profile.vendor" select="''"/>
41 <xsl:param name="profile.wordsize" select="''"/>
42 <xsl:param name="profile.attribute" select="''"/>
43 <xsl:param name="profile.value" select="''"/>
44 <xsl:param name="profile.separator" select="';'"/>
45
46 <xsl:param name="exsl.node.set.available">
47 <xsl:choose>
48 <xsl:when xmlns:exsl="http://exslt.org/common" exsl:foo="" test="function-available('exsl:node-set') or contains(system-property('xsl:vendor'), 'Apache Software Foundation')">1</xsl:when>
49 <xsl:otherwise>0</xsl:otherwise>
50 </xsl:choose>
51 </xsl:param>
52
53 <!-- Call common profiling mode -->
54 <xsl:template match="/">
55 <xsl:apply-templates select="." mode="profile"/>
56 </xsl:template>
57
58 </xsl:stylesheet>
59