xsd-to-dita.xsl 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  4. xmlns:xsd-to-dita="xsd-to-dita.xsd"
  5. exclude-result-prefixes="xs xsd-to-dita"
  6. version="2.0">
  7. <xsl:include href="xsd-to-dita_xs__import.xsl"/>
  8. <xsl:output doctype-public="-//OASIS//DTD DITA Map//EN"
  9. doctype-system="map.dtd"/>
  10. <xsl:include href="xsd-to-dita_config.xsl"/>
  11. <xsl:template mode="xsd-to-dita:import.xsd" match="xs:schema">
  12. <xsl:apply-templates mode="#current"/>
  13. </xsl:template>
  14. <xsl:template mode="xsd-to-dita:import.xsd" match="xs:annotation[xs:documentation]">
  15. <title><xsl:value-of select="xs:documentation"/></title>
  16. </xsl:template>
  17. <xsl:template mode="xsd-to-dita:master.xsd__import" match="*">
  18. <xsl:comment>#28AM xsd-to-dita:master.xsd__import match="*" [<xsl:value-of select="name()"/>]</xsl:comment>
  19. </xsl:template>
  20. <xsl:template mode="xsd-to-dita:import.xsd" match="*">
  21. <xsl:comment>#28AB xsd-to-dita:import.xsd match="*"</xsl:comment>
  22. </xsl:template>
  23. <xsl:template mode="xsd-to-dita:master.xsd" match="*">
  24. <xsl:comment>#28AC xsd-to-dita:master.xsd</xsl:comment>
  25. </xsl:template>
  26. <!--xs:annotation-->
  27. <!--<xsl:template mode=""></xsl:template>-->
  28. </xsl:stylesheet>