|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Basic XSL techniques
<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="xsl-test1.xsl"?> <ELEMENTS> <ELEMENT title="The 5th Element"> <DESC>Starring Bruce Willis</DESC> </ELEMENT> </ELEMENTS> <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template select="ELEMENTS/ELEMENT[@title='%Do block']"> <HTML><BODY> WHY DOESN'T THE FOLLOWING TEMPLATE-CALL WORK? <xsl:apply-templates select="DESC"/> </BODY></HTML> </xsl:template> <xsl:template match="*"><xsl:apply-templates select="@*"/></xsl:template> <xsl:template match="*[node()]"> <xsl:apply-templates select="@*"/> <DIV><xsl:apply-templates select="node()"/></DIV> </xsl:template> <xsl:template match="DESC"> <b><xsl:value-of/></b> </xsl:template> <xsl:template match="text()"><xsl:value-of /></xsl:template> </xsl:stylesheet>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








