cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott_B...@lotus.com
Subject Re: A TemplateTransformer
Date Tue, 10 Jul 2001 17:57:07 GMT

Berin Loritsch <bloritsch@apache.org> wrote:
> <html>
>   <head>
>     <title><template:title/></title>
etc...

Note that this is not valid XML, as the template namespace is not declared.
So I wonder if this is not a bit over simplified?

Here is a valid XSLT stylesheet:

<html xmlns:template="http://www.w3.org/1999/XSL/Transform"
template:version="1.0">
  <head>
    <title><template:value-of select="title"/></title>
  </head>
  <body>
    <h1><template:value-of select="title"/></h1>
    <table>
     <tr>
      <td><template:value-of select="menu"/></td>
      <td><template:value-of select="body"/></td>
     </tr>
    </table>
  <body>
</html>

I don't think this is much more complicated than your example, and it
scales to the complexity that you need.  I don't see the point of inventing
yet another template language.

-scott



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message