Nic Miloslav Example 63 | KEYWORDS EXAMPLES AUTHORS |
---|
The text output method outputs the result tree by outputting the string-value of every text node in the result tree in document order without any escaping. Look at the source in your browser to see the output.
XML | HOME XSL 1 |
---|
<xslTutorial > |
<AAA id="12"/> |
</xslTutorial> |
XSL 1 | HOME XML HTML 1 OUTPUT 1 |
---|
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> |
<xsl:output method="text"/> |
<xsl:template match="AAA"> |
<xsl:text> <!ELEMENT </xsl:text> |
<xsl:value-of select="name()"/> |
<xsl:text> ANY></xsl:text> |
<xsl:text> <!ATTLIST </xsl:text> |
<xsl:value-of select="name()"/> |
<xsl:text> </xsl:text> |
<xsl:value-of select="name(@*)"/> |
<xsl:text> ID #REQUIRED></xsl:text> |
<xsl:text> Look at my source in your browser</xsl:text> |
</xsl:template> |
</xsl:stylesheet> |
HTML 1 | HOME XML XSL 1 OUTPUT 1 |
---|
<!ELEMENT AAA ANY> |
<!ATTLIST AAA id ID #REQUIRED>Look at my source in your browser |
OUTPUT 1 | HOME XML XSL 1 HTML 1 |
---|