Re: [xsl] ASPX generation

Subject: Re: [xsl] ASPX generation
From: Liam R E Quin <liam@xxxxxx>
Date: Mon, 14 Jun 2010 15:34:42 -0400
On Mon, 2010-06-14 at 06:06 -0700, Vladimir Nesterovsky wrote:
> Hello!
> What's the recommended way of ASPX page generation?
I'd recommend avoiding it.

However, if you must generate it :-) your main architectural
decision is, at what point you move out of XML.

Method (1)

Invent a simple XML representation that you generate with XSLT,
and then convert that to ASPX, e.g. using a short C# program.

Method (2)

Generate ASPX using XSLT and disable-output-escaping to get < and > into
the output, e.g. by writing templates with names like
that puts <% ... %> around its input, and
that generates <asp:Content> .... </asp:Content> maybe by calling
that in turn takes an "element name" (asp:Content), a list of
attributes, ID="Simon", etc., and the element content.

Method (3)

Install apache and tomcat and move to pure XQuery + Java :-) :-)


Liam Quin - XML Activity Lead, W3C,
Pictures from old books:

Current Thread