Menu

#37 Support \'xml\' attribute for JSP tag

undecided
closed-rejected
nobody
5
2015-08-26
2005-02-25
Anonymous
No

The FreeMarker JSP tag is great but it would be very
powerful to be able to easily add an xml content source
to the context. For example:

<fm:template xml="foo/books.xml">

${xml.doc.book.title}

</fm:template>

This would allow a very easy to to transform things
like RSS feeds. There are XSL tags for this but the
syntax of FM is much cleaner & simpler.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    But that's possible, just it is not the task of the template to
    load data, since it's an MVC centric engine. The XML
    document should be put into the data model before the
    template is invoked. But if that's not good, you can still write a
    TemplateTransfromModel that implements a such tag, and
    dropt that into the data model.

     
  • Attila Szegedi

    Attila Szegedi - 2007-04-17
    • labels: --> JSP taglib support
    • summary: Support 'xml' attribute for JSP tag --> Support \'xml\' attribute for JSP tag
     
  • Dániel Dékány

    • status: open --> closed-rejected
    • Group: --> undecided
     
  • Dániel Dékány

    As per above, it's solvable with custom directive, and is certainly not a core functionality, so I close this as rejected.

     

Log in to post a comment.