[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: mischief


RE:  mischief

> -----Original Message-----
> From: Rick Jelliffe [mailto:ricko@a...]
> Sent: 26 March 2003 04:10
> To: xml-dev@l...
> Subject: Re:  mischief
> 
> ...templates in XML ...
>
> Are they processing instructions or pre-processing instructions?

Either. 

It depends on whether the template engine operates at page delivery 
time, or offline to generate a (partial) page. Ideally a templating 
system should allow this decision to be hidden from the template 
author. Pre-processing being a performance optimisation.

I've written systems that operate in both ways.

As far as extending the XML syntax to allow easier creation of 
templates, I'm not sure its worthwhile. As always there's a spectrum 
of opinion on what constitutes a good templating syntax, but 
the two main approaches seem to be:

- do everything with well-formed XML. (JSP is nearly there in 
this regard[*]). Obvious benefits from using general purpose tools, 
including XSLT, and Schematron to enforce styling.

- don't use XML at all. The argument being that the two syntaxes 
should be distinct.

(I tend to favour the all XML route, because I don't have any problems 
switching contexts. But I recently wrote some code to migrate a 
legacy non-XML templating syntax into well-formed JSP/JSTL and found 
that overall it was a lot less readable).

Cheers,

L.

[*] and is another example of dereferencing namespaces to obtain 
precisely _one_ expected resource, the tld file.

  • References:

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.