free marker issue, Expecting a string, date or number here, Expression instead a freemarker.ext.dom.NodeListModel
dingi <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
free marker issue, Expecting a string, date or number here, Expression
instead a freemarker.ext.dom.NodeListModel
My XML
---------
<?xml version="1.0" encoding="UTF-8"?>
======================================================================
My free marker template
------------------------
<#assign tickerEntry =
StatsSportsScore["sports-statistics/ticker-entries"]>
# Sports Scoreboard
<#list tickerEntry as tickers>
${tickers.@href}
${tickers.@sport?upper_case}
<#assign temp = tickers["ticker-entry/gamestate"]>
${temp.@gamedate}
# NY Knicks
# Detroit
Powered by: http://www.stats.com/
http://f.dev.wsj.com/img/SPR_stats.gif
===========================================================
I am getting below error.
Expecting a string, date or number here, Expression temp.@gamedate is
instead a freemarker.ext.dom.NodeListModel
When I do temp.@gamedate?size, it returns valid number, why this is not
returningdate value.
I would appreciate your help, in advance.
Thanks,
Dingi
--
View this message in context: http://n4.nabble.com/free-marker-issue-Expecting-a-string-date-or-number-here-Expression-instead-a-freemarker-ext-dom-Nodl-tp1470426p1470426.html
Sent from the freemarker-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user