lfs-profile.xsl 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version='1.0' encoding='ISO-8859-1'?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. version="1.0">
  4. <!-- Stylesheet to create profiled XML output.
  5. Replaces {docbook-xsl}/profiling/profile.xsl -->
  6. <!-- Include common profiling stylesheet -->
  7. <xsl:import href="docbook-xsl-snapshot/profiling/profile-mode.xsl"/>
  8. <!-- This file must be included, because profile-mode is using
  9. templates from it -->
  10. <xsl:import href="docbook-xsl-snapshot/common/stripns.xsl"/>
  11. <!-- In the two pass processing there is no need for base URI fixup -->
  12. <xsl:param name="profile.baseuri.fixup" select="false()"/>
  13. <!-- Generate DocBook instance with correct DOCTYPE -->
  14. <xsl:output method="xml"
  15. doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
  16. doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
  17. <!-- Profiling parameters:
  18. profile.separator changed from ; to , to let in work in command line. -->
  19. <xsl:param name="profile.arch" select="''"/>
  20. <xsl:param name="profile.audience" select="''"/>
  21. <xsl:param name="profile.condition" select="''"/>
  22. <xsl:param name="profile.conformance" select="''"/>
  23. <xsl:param name="profile.lang" select="''"/>
  24. <xsl:param name="profile.os" select="''"/>
  25. <xsl:param name="profile.revision" select="''"/>
  26. <xsl:param name="profile.revisionflag" select="''"/>
  27. <xsl:param name="profile.role" select="''"/>
  28. <xsl:param name="profile.security" select="''"/>
  29. <xsl:param name="profile.status" select="''"/>
  30. <xsl:param name="profile.userlevel" select="''"/>
  31. <xsl:param name="profile.vendor" select="''"/>
  32. <xsl:param name="profile.wordsize" select="''"/>
  33. <xsl:param name="profile.attribute" select="''"/>
  34. <xsl:param name="profile.value" select="''"/>
  35. <xsl:param name="profile.separator" select="','"/>
  36. <!-- Call common profiling mode -->
  37. <xsl:template match="/">
  38. <xsl:apply-templates select="." mode="profile"/>
  39. </xsl:template>
  40. </xsl:stylesheet>