Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

  1. <?xml version="1.0"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  3. <!-- Root template selects all children of the CIM/DECLARATIONS tag -->
  4. <xsl:template match="/">
  5. <xsl:apply-templates select="CIM//CLASS"/>
  6. </xsl:template>
  7. <xsl:template match="CLASS">
  8. <xsl:element name="METHOD">
  9. <xsl:attribute name="id"><xsl:value-of select="@NAME"/></xsl:attribute>
  10. <xsl:apply-templates/>
  11. </xsl:element>
  12. </xsl:template>
  13. <!-- METHOD template formats a single CIM method -->
  14. <xsl:template match="METHOD">
  15. <xsl:element name="METHOD">
  16. <xsl:attribute name="NAME"><xsl:value-of select="@NAME"/></xsl:attribute>
  17. <xsl:for-each select="METHODPARAMETER">
  18. <xsl:element name="METHODPARAMETER">
  19. <xsl:attribute name="NAME"><xsl:value-of select="@NAME"/></xsl:attribute>
  20. <xsl:for-each select="PARAMETER">
  21. <xsl:attribute name="TYPE"><xsl:value-of select="@TYPE"/></xsl:attribute>
  22. </xsl:for-each>
  23. </xsl:element>
  24. </xsl:for-each>
  25. </xsl:element>
  26. </xsl:template>
  27. </xsl:stylesheet>