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

Re: XML friendly runtime templating languages


velocity input checked
Hi.

You didn't say why you eliminated JSP from your list.  I've heard that  
some of the newer taglib technologies provide pretty good XML hooks.

I just about died when a group where I work wanted us to write DVSL  
templates:

http://jakarta.apache.org/velocity/dvsl/users-guide.html

----------->Nathan

On Mon, 28 Mar 2005 17:37:32 -0800, Robert Koberg <rob@k...> wrote:

> Hi,
>
> I recently did an app that pre-generated out to Jakarta Velocity  
> templates. I chose Velocity because I thought it was the most XML  
> friendly (and I have a java bias). I posted a minor annoyance about  
> still having to do some redundant coding for SGML attribute minimazation  
> brought into XML:
>
> #set ($isChecked = $page.getBoolean("isChecked"))
> #if ($isChecked)
>    <input ... checked="checked"/>
> #else
>    <input .../>
> #end
>
> I can't write something like:
>
> <input ... #if($isChecked)checked="checked"#end/>
>
> becuase the template code must exist in a well formed XML document to be  
> used in an XSL transformation.
>
> Andrew Clover clued me in to PXTL where (from the PXTL spec):
>
> "If it is a conditional element, it is checked for success. If  
> unsuccessful, the element is removed with all its child nodes. If  
> successful, the element is replaced by its children."
>
> Andrew responded to my post with:
>
> "Well that's a failing of the templating language rather than XHTML as  
> such. A templating language that aims at being helpful for XML should  
> provide a mechanism for inclusion/exclusion of an attribute.
>
> For example in PXTL:
>
>    <input type="radio" checked="checked{?px_if isChecked?}"/>
>
> *I was wondering if there are other runtime templating languages out  
> there that I am missing.* I am not including XSLT for runtime processing  
> because of its need to parse the XML source for each transformation.
>
> best,
> -Rob
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>
>



-- 


.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:.

Nathan Young
A: ncy1717
E: natyoung@c...

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-2007 All Rights Reserved.