<!ENTITY profile.role SYSTEM "../params/profile.role.xml">
<!ENTITY profile.security SYSTEM "../params/profile.security.xml">
<!ENTITY profile.separator SYSTEM "../params/profile.separator.xml">
+<!ENTITY profile.status SYSTEM "../params/profile.status.xml">
<!ENTITY profile.userlevel SYSTEM "../params/profile.userlevel.xml">
<!ENTITY profile.value SYSTEM "../params/profile.value.xml">
<!ENTITY profile.vendor SYSTEM "../params/profile.vendor.xml">
&profile.revisionflag;
&profile.role;
&profile.security;
+&profile.status;
&profile.userlevel;
&profile.vendor;
&profile.attribute;
<src:fragref linkend="profile.role.frag"/>
<src:fragref linkend="profile.security.frag"/>
<src:fragref linkend="profile.separator.frag"/>
+<src:fragref linkend="profile.status.frag"/>
<src:fragref linkend="profile.userlevel.frag"/>
<src:fragref linkend="profile.value.frag"/>
<src:fragref linkend="profile.vendor.frag"/>
<!ENTITY profile.role SYSTEM "../params/profile.role.xml">
<!ENTITY profile.security SYSTEM "../params/profile.security.xml">
<!ENTITY profile.separator SYSTEM "../params/profile.separator.xml">
+<!ENTITY profile.status SYSTEM "../params/profile.status.xml">
<!ENTITY profile.userlevel SYSTEM "../params/profile.userlevel.xml">
<!ENTITY profile.value SYSTEM "../params/profile.value.xml">
<!ENTITY profile.vendor SYSTEM "../params/profile.vendor.xml">
&profile.revisionflag;
&profile.role;
&profile.security;
+&profile.status;
&profile.userlevel;
&profile.vendor;
&profile.attribute;
<src:fragref linkend="profile.role.frag"/>
<src:fragref linkend="profile.security.frag"/>
<src:fragref linkend="profile.separator.frag"/>
+<src:fragref linkend="profile.status.frag"/>
<src:fragref linkend="profile.userlevel.frag"/>
<src:fragref linkend="profile.value.frag"/>
<src:fragref linkend="profile.vendor.frag"/>
--- /dev/null
+<refentry xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"\r
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"\r
+ id="profile.status">\r
+<refmeta>\r
+<refentrytitle>profile.status</refentrytitle>\r
+<refmiscinfo role="type">string</refmiscinfo>\r
+</refmeta>\r
+<refnamediv>\r
+<refname>profile.status</refname>\r
+<refpurpose>Target profile for <sgmltag class="attribute">status</sgmltag>\r
+attribute</refpurpose>\r
+</refnamediv>\r
+\r
+<refsynopsisdiv>\r
+<src:fragment id='profile.status.frag'>\r
+<xsl:param name="profile.status" select="''"/>\r
+</src:fragment>\r
+</refsynopsisdiv>\r
+\r
+<refsect1><title>Description</title>\r
+\r
+<para>Value of this parameter specifies profiles which should be\r
+included in the output. You can specify multiple profiles by\r
+separating them by semicolon. You can change separator character by\r
+<parameter>profile.separator</parameter>\r
+parameter.</para>\r
+\r
+<para>This parameter has effect only when you are using profiling\r
+stylesheets (<filename>profile-docbook.xsl</filename>,\r
+<filename>profile-chunk.xsl</filename>, …) instead of normal\r
+ones (<filename>docbook.xsl</filename>,\r
+<filename>chunk.xsl</filename>, …).</para>\r
+\r
+</refsect1>\r
+</refentry>\r
$conformance.content != '' or @conformance = ''"/>
<xsl:variable name="lang.content">
- <xsl:if test="@lang">
+ <xsl:if test="@lang | @xml:lang">
<xsl:call-template name="cross.compare">
<xsl:with-param name="a" select="$profile.lang"/>
- <xsl:with-param name="b" select="@lang"/>
+ <xsl:with-param name="b" select="(@lang | @xml:lang)[1]"/>
</xsl:call-template>
</xsl:if>
</xsl:variable>
- <xsl:variable name="lang.ok" select="not(@lang) or not($profile.lang) or
- $lang.content != '' or @lang = ''"/>
+ <xsl:variable name="lang.ok" select="not(@lang | @xml:lang) or not($profile.lang) or
+ $lang.content != '' or @lang = '' or @xml:lang = ''"/>
<xsl:variable name="os.content">
<xsl:if test="@os">
<xsl:variable name="security.ok" select="not(@security) or not($profile.security) or
$security.content != '' or @security = ''"/>
+ <xsl:variable name="status.content">
+ <xsl:if test="@status">
+ <xsl:call-template name="cross.compare">
+ <xsl:with-param name="a" select="$profile.status"/>
+ <xsl:with-param name="b" select="@status"/>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:variable name="status.ok" select="not(@status) or not($profile.status) or
+ $status.content != '' or @status = ''"/>
+
<xsl:variable name="userlevel.content">
<xsl:if test="@userlevel">
<xsl:call-template name="cross.compare">
<xsl:if test="$arch.ok and $condition.ok and $conformance.ok and $lang.ok and $os.ok
and $revision.ok and $revisionflag.ok and $role.ok and $security.ok
- and $userlevel.ok and $vendor.ok and $attribute.ok">
+ and $status.ok and $userlevel.ok and $vendor.ok and $attribute.ok">
<xsl:copy>
<xsl:copy-of 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.attribute" select="''"/>