]> granicus.if.org Git - docbook-dsssl/commitdiff
Added missing support for outputformat attribute
authorThomas Schraitle <tom_schr@web.de>
Mon, 9 Feb 2015 16:19:25 +0000 (16:19 +0000)
committerThomas Schraitle <tom_schr@web.de>
Mon, 9 Feb 2015 16:19:25 +0000 (16:19 +0000)
* Added missing parameter profile.outputformat in
  params/profile.outputformat.xml
* Added missing lines to check for outputformat attribute in
  profiling/profile-mode.xsl

xsl/params/profile.outputformat.xml [new file with mode: 0644]
xsl/profiling/profile-mode.xsl

diff --git a/xsl/params/profile.outputformat.xml b/xsl/params/profile.outputformat.xml
new file mode 100644 (file)
index 0000000..1746dd1
--- /dev/null
@@ -0,0 +1,38 @@
+<refentry xmlns="http://docbook.org/ns/docbook"
+          xmlns:xlink="http://www.w3.org/1999/xlink"
+          xmlns:xi="http://www.w3.org/2001/XInclude"
+          xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
+          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+          version="5.0" xml:id="profile.outputformat">
+<refmeta>
+<refentrytitle>profile.outputformat</refentrytitle>
+<refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
+</refmeta>
+<refnamediv>
+    <refname>profile.outputformat</refname>
+    <refpurpose>Target profile for <tag class="attribute"
+        >outputformat</tag> attribute</refpurpose>
+  </refnamediv>
+
+<refsynopsisdiv>
+<src:fragment xml:id="profile.outputformat.frag">
+<xsl:param name="profile.outputformat"></xsl:param>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsection><info><title>Description</title></info>
+
+<para>The value of this parameter specifies profiles which should be
+included in the output. You can specify multiple profiles by
+separating them by semicolon. You can change separator character by
+<parameter>profile.separator</parameter>
+parameter.</para>
+
+<para>This parameter has effect only when you are using profiling
+stylesheets (<filename>profile-docbook.xsl</filename>,
+<filename>profile-chunk.xsl</filename>, …) instead of normal
+ones (<filename>docbook.xsl</filename>,
+<filename>chunk.xsl</filename>, …).</para>
+
+</refsection>
+</refentry>
index 1c8660b8f9ac5807cfa74353b950831179e9aace..5999f72592740cdb567153db5b96e96069f28fdf 100644 (file)
   <xsl:variable name="os.ok" select="not(@os) or not($profile.os) or
                                      $os.content != '' or @os = ''"/>
 
+  <xsl:variable name="outputformat.content">
+    <xsl:if test="@outputformat">
+      <xsl:call-template name="cross.compare">
+        <xsl:with-param name="a" select="$profile.outputformat"/>
+        <xsl:with-param name="b" select="@outputformat"/>
+      </xsl:call-template>
+    </xsl:if>
+  </xsl:variable>
+  <xsl:variable name="outputformat.ok" select="not(@outputformat) or not($profile.outputformat) or
+                                     $outputformat.content != '' or @outputformat = ''"/>
+
   <xsl:variable name="revision.content">
     <xsl:if test="@revision">
       <xsl:call-template name="cross.compare">
                 $conformance.ok and 
                 $lang.ok and 
                 $os.ok and 
+                $outputformat.ok and
                 $revision.ok and 
                 $revisionflag.ok and 
                 $role.ok and