topicpull-task.xsl 1.2 KB

123456789101112131415161718192021222324
  1. <?xml version="1.0"?>
  2. <!-- This file is part of the DITA Open Toolkit project hosted on
  3. Sourceforge.net. See the accompanying license.txt file for
  4. applicable licenses.-->
  5. <!-- Copyright IBM Corp. 2010 All Rights Reserved. -->
  6. <!-- This file added for SourceForge bug report #2962813 -->
  7. <xsl:stylesheet version="2.0"
  8. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  9. xmlns:topicpull="http://dita-ot.sourceforge.net/ns/200704/topicpull"
  10. xmlns:ditamsg="http://dita-ot.sourceforge.net/ns/200704/ditamsg"
  11. exclude-result-prefixes="topicpull ditamsg ">
  12. <!-- When cross referencing a step, skip any stepsection elements in the step count -->
  13. <xsl:template match="*[contains(@class,' task/step ')]" mode="topicpull:li-linktext">
  14. <xsl:number level="multiple"
  15. count="*[contains(@class,' task/step ')]" format="1.a.i.1.a.i.1.a.i"/>
  16. </xsl:template>
  17. <xsl:template match="*[contains(@class,' task/substep ')]" mode="topicpull:li-linktext">
  18. <xsl:number level="multiple"
  19. count="*[contains(@class,' topic/ol ')]/*[contains(@class,' topic/li ')][not(contains(@class,' task/stepsection '))]" format="1.a.i.1.a.i.1.a.i"/>
  20. </xsl:template>
  21. </xsl:stylesheet>