[antlr-interest] Re: XSL?
paul taney
paultaney at yahoo.com
Mon Jul 14 11:23:32 PDT 2003
--- Karl Meissner <meissnersd at yahoo.com> wrote:
>
> So XSL is very slow? Have not used it much...
>
>
> --- Oliver Zeigermann <oliver at zeigermann.de> wrote:
> > Quite right! If *speed* does not matter it is
> mainly a question of taste
It might be fast as hell, but it looks like
some walker's debug output.
paul
----
e.g. from http://www.w3.org/TR/xslt11/#N3791
<snip>
given an XML document with this structure
<customers>
<customer>
<name>...</name>
<order>...</order>
<order>...</order>
</customer>
<customer>
<name>...</name>
<order>...</order>
<order>...</order>
</customer>
</customers>
the following would create an HTML document containing
a table with a row for each customer element
<xsl:template match="/">
<html>
<head>
<title>Customers</title>
</head>
<body>
<table>
<tbody>
<xsl:for-each select="customers/customer">
<tr>
<th>
<xsl:apply-templates select="name"/>
</th>
<xsl:for-each select="order">
<td>
<xsl:apply-templates/>
</td>
</xsl:for-each>
</tr>
</xsl:for-each>
</tbody>
</table>
</body>
</html>
</xsl:template>
<snip>
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list