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

Re: Fwd: XQuery Article

xquery article
Simon St.Laurent wrote:
> Just flicked through this nice article on XML.com about XQuery:
> http://www.xml.com/pub/a/2002/10/16/xquery.html
> And I kept wondering, as cool as this might be, isn't this exactly
> what people consider harmful or bad practice about PHP/ASP? I mean 
> the mixing of logical code (conditions, loops and comparisons) 
> and markup. 
> By separating display and logic you make sites more flexible and easy
> to rebrand should the necessity occur. This way of inline coding in 
> the document might be handy, but I consider it rather harmful when it 
> comes to coding style.

I wholehearedly agree, though I think there is a difference in there. 
One thing that I find unfortunate is that the examples use XHTML to show 
how one would get a page from an XQuery. It seems unlikely to me that 
one will want to use that approach in real world, probably preferring to 
first produce some form of XML document that expresses the semantic 
structure of the document, and then transform it to whatever target 
format using XSLT.

Of course, that may be me being optimistic...

Robin Berjon <robin.berjon@e...>
Research Engineer, Expway
7FC0 6F5F D864 EFB8 08CE  8E74 58E6 D5DB 4889 2488


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.
First Name
Last Name
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.