step1-xml-d.xsl 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!-- This file is part of the DITA Open Toolkit project.
  3. See the accompanying license.txt file for applicable licenses.-->
  4. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5. version="2.0">
  6. <xsl:template match="*[contains(@class,' xml-d/numcharrer ')]">
  7. <text style="tt"><xsl:call-template name="commonatts"/>
  8. <xsl:text>&amp;#</xsl:text>
  9. <xsl:apply-templates/>
  10. <xsl:text>;</xsl:text>
  11. </text>
  12. </xsl:template>
  13. <xsl:template match="*[contains(@class,' xml-d/parameterentity ')]">
  14. <text style="tt"><xsl:call-template name="commonatts"/>
  15. <xsl:text>%</xsl:text>
  16. <xsl:apply-templates/>
  17. <xsl:text>;</xsl:text>
  18. </text>
  19. </xsl:template>
  20. <xsl:template match="*[contains(@class,' xml-d/textentity ')]">
  21. <text style="tt"><xsl:call-template name="commonatts"/>
  22. <xsl:text>&amp;</xsl:text>
  23. <xsl:apply-templates/>
  24. <xsl:text>;</xsl:text>
  25. </text>
  26. </xsl:template>
  27. <xsl:template match="*[contains(@class,' xml-d/xmlelement ')]">
  28. <text style="tt"><xsl:call-template name="commonatts"/>
  29. <xsl:text>&lt;</xsl:text>
  30. <xsl:apply-templates/>
  31. <xsl:text>&gt;</xsl:text>
  32. </text>
  33. </xsl:template>
  34. <xsl:template match="*[contains(@class,' xml-d/xmlatt ')]">
  35. <text style="tt"><xsl:call-template name="commonatts"/>
  36. <xsl:text>@</xsl:text>
  37. <xsl:apply-templates/>
  38. </text>
  39. </xsl:template>
  40. <xsl:template match="*[contains(@class,' xml-d/xmlnsname ')]">
  41. <text style="tt"><xsl:call-template name="commonatts"/>
  42. <xsl:apply-templates/>
  43. </text>
  44. </xsl:template>
  45. <xsl:template match="*[contains(@class,' xml-d/xmlpi ')]">
  46. <text style="tt"><xsl:call-template name="commonatts"/>
  47. <xsl:apply-templates/>
  48. </text>
  49. </xsl:template>
  50. </xsl:stylesheet>