Re: XMLProcessing : testing optional value in a NodeModel

Daniel López <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Daniel Dekany escribió:
> Wednesday, February 6, 2008, 9:58:49 AM, Daniel López wrote:
...
>> And the "conditional handling code" is usually more verbose in
>> FreeMarker.
> 
> I think FreeMarker is less verbose than XSLT, at least in the basic
> cases... and then XSLT is specialized on transforming XML documents,
> while FreeMarker isn't.

Sure, the "conditional code" is less verbose in XSLT because it's more 
forgiving regarding what really exists vs what it doesn't, this way you 
can "apply commands" and nothing will happen if there's nothing to apply 
to. Of course, this comes with the price that it is more difficult to 
uncover hidden errors/typos.

Options, pros vs cons... such is life :).
D.
-------------------------------------------
Daniel Lopez Janariz ([email protected])
Web Services
Centre for Information and Technology
Balearic Islands University
(SPAIN)
-------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.