[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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
  aspx-make-declaration
that puts <% ... %> around its input, and
  aspx-make-content
that generates <asp:Content> .... </asp:Content> maybe by calling
  aspx-make-element
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


-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org


Current Thread
Keywords