topicpull-pr-d.xsl 945 B

12345678910111213141516171819202122232425
  1. <?xml version="1.0"?>
  2. <!--
  3. This file is part of the DITA Open Toolkit project.
  4. Copyright 2007 IBM Corporation
  5. See the accompanying LICENSE file for applicable license.
  6. -->
  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. <!-- Allow fragref without href as long as it has content. -->
  13. <xsl:template match="*[contains(@class, ' pr-d/fragref ')][not(@href)][text()|*]">
  14. <xsl:copy>
  15. <xsl:apply-templates select="*|@*|comment()|processing-instruction()|text()"/>
  16. </xsl:copy>
  17. </xsl:template>
  18. <!-- Ensure desc is not pulled into fragref, which does not allow it in base model -->
  19. <xsl:template match="*[contains(@class,' pr-d/fragref ')]" mode="topicpull:get-stuff_get-shortdesc"/>
  20. </xsl:stylesheet>