how to warn about missing xml node?
"Ralf Hauser" <[email protected]> Mon, 13 Oct 2003 12:29:41 +0200
| Newsgroups | gmane.comp.text.fmpp |
|---|---|
| Message-ID | <[email protected]> |
a <#macro of mine typically gets parameters of the kind
pathFileBaseName=xml.site.files.thisFilename.@baseName
out of
<#assign xml = pp.loadData("xml", "site.xml")>
if for some reason, the not thisFilename was forgotten in site.xml, I would
like the macro to print
what it got in the parameter literally.
However, if I do
<#if pathFileBaseName?has_content?string = "false">
<@pp.warning message="pathFileBaseName ${pathFileBaseName} not found
in \
site.xml" />
</#if>
I still get
[fmpp] Expecting a string, date or number here, Expression
pathFileBaseName
is instead a freemarker.ext.dom.NodeListModel
but I would like to see whether this is "thisFilename" or "thisFilename1" or
"thisFilename2"
how would one do that?
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php