xsl-list
[Top] [All Lists]

Re: [xsl] ASPX generation

2010-06-14 14:35:10
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>