Re: Custom directive for XML model

Daniel Dekany <[email protected]> Thu, 12 Sep 2013 20:42:30 +0200
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Thursday, September 12, 2013, 2:50:35 PM, Viktor Levine wrote:

> Daniel,
>
> I can see your reasons. However, it renders the whole concept of custom
> directives unusable in XML models out of the box.

XML is normally not used as the data-model *root*. It was never meant
to be used like that.

> Perhaps documentation should reflect this. We would have to avoid
> using custom directives in our development.

You can just expose the top-level XML element in the data-model with a
variable, as I have suggested.

> Until this functionality would be independent of the model.

-- 
Thanks,
 Daniel Dekany


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk