Line | |
---|
1 | <xsl:stylesheet version="1.0" |
---|
2 | xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
---|
3 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
---|
4 | xmlns:cs="cansas1d/1.0"> |
---|
5 | |
---|
6 | <!-- http://www.w3schools.com/xsl/xsl_transformation.asp --> |
---|
7 | |
---|
8 | <xsl:strip-space elements="DT DD" /> |
---|
9 | |
---|
10 | <xsl:template match="/"> |
---|
11 | <html> |
---|
12 | <head> |
---|
13 | <title> |
---|
14 | Extracted documentation from canSAS 1-D XML Schema |
---|
15 | </title> |
---|
16 | </head> |
---|
17 | <body> |
---|
18 | <h1> |
---|
19 | Extracted documentation from canSAS 1-D XML Schema |
---|
20 | </h1> |
---|
21 | <DL> |
---|
22 | <xsl:apply-templates select="//xsd:documentation" /> |
---|
23 | </DL> |
---|
24 | </body> |
---|
25 | </html> |
---|
26 | </xsl:template> |
---|
27 | |
---|
28 | <xsl:template match="xsd:documentation-html"> |
---|
29 | <DT><xsl:value-of select="xsd:DT" /></DT> |
---|
30 | <DD><xsl:value-of select="xsd:DD" /></DD> |
---|
31 | </xsl:template> |
---|
32 | |
---|
33 | <xsl:template match="xsd:documentation"> |
---|
34 | ;<TT><xsl:value-of select="xsd:DT" /> </TT>: |
---|
35 | <xsl:value-of select="xsd:DD" /> <br /><br /> |
---|
36 | </xsl:template> |
---|
37 | |
---|
38 | </xsl:stylesheet> |
---|
Note: See
TracBrowser
for help on using the repository browser.