浏览代码

Revised stylesheets/lfs-profile.xsl.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/new-xsl@8025 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Manuel Canales Esparcia 18 年之前
父节点
当前提交
fa49c26542
共有 1 个文件被更改,包括 15 次插入3 次删除
  1. 15 3
      lfs-profile.xsl

+ 15 - 3
lfs-profile.xsl

@@ -3,15 +3,26 @@
 <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 -->
-  <xsl:include href="docbook-xsl-snapshot/profiling/profile-mode.xsl"/>
+  <xsl:import href="docbook-xsl-snapshot/profiling/profile-mode.xsl"/>
+
+    <!-- This file must be included, because profile-mode is using
+         templates from it -->
+  <xsl:import href="docbook-xsl-snapshot/common/stripns.xsl"/>
+
+    <!-- In the two pass processing there is no need for base URI fixup -->
+  <xsl:param name="profile.baseuri.fixup" select="false()"/>
 
   <!-- Generate DocBook instance with correct DOCTYPE -->
   <xsl:output method="xml"
               doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
               doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
 
-  <!-- Profiling parameters -->
+  <!-- Profiling parameters:
+         profile.separator changed from ; to , to let in work in command line. -->
   <xsl:param name="profile.arch" select="''"/>
   <xsl:param name="profile.condition" select="''"/>
   <xsl:param name="profile.conformance" select="''"/>
@@ -21,11 +32,12 @@
   <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="''"/>
   <xsl:param name="profile.value" select="''"/>
-  <xsl:param name="profile.separator" select="';'"/>
+  <xsl:param name="profile.separator" select="','"/>
 
   <!-- Call common profiling mode -->
   <xsl:template match="/">