1
0

profile.xsl 2.0 KB

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