10-04-2007 08:45 AM
<a:blabla>
<b:blabla>
<c:somestuff>xxx</c:somestuff>
</b:blabla>
</a:blabla>
via freemarker template, which offering entering namespaces like
<#ftl ns_prefixes={
"a", "http://www.something.org/somewhere",
"b","http://something.else/somewhere/"
}
but i cant pass this notation through "alfresco version" of FreeMarker. Can someone please help me, how can i manipulate with that document? Thanks a lot!
10-04-2007 09:23 AM
<#ftl ns_prefixes={
"a":"http://www.something.org/somewhere",
"b":"http://something.else/somewhere/"
}>
10-04-2007 09:35 AM
<#ftl ns_prefixes={"are":"http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_answer_or/v_1.0.3",
"D":"http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_datatypes/v_1.0.3",
"U":"http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/uvis_datatypes/v_1.0.3"}>
and on "tomcat console"
…Caused by: freemaker.core.ParseException: Encountered "<#ftl " at line 2…
Was expecting one of:
<ATTEMPT>…
10-04-2007 10:28 AM
10-04-2007 11:47 AM
<?xml version="1.0" ?>
<are:Ares_odpovedi xmlns:are="http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_answer_or/v_1.0.3" Id="Ares_odpoved">
<are:Odpoved>
somestuff
<bbb:Odpoved2>
someotherstuff
</bbb:Odpoved2>
</are:Odpoved>
</are:Ares_odpovedi>
and something like
…
<#list document.childrenByXPath[".//*[subtypeOf('are:Ares_odpovedi')]"] as odpovedi>
${odpovedi.content["are:Odpoved"]}
</#list>
…
or
…
<#assign dom=document.xmlNodeModel />
<#list dom.content["are:Ares_odpovedi"] as cosi>
<h1>${cosi.content["are:Odpoved"]}</h1>
</#list>
…
(and what about <bbbdpoved2>?)10-04-2007 11:50 AM
10-04-2007 12:07 PM
<?xml version="1.0" ?>
<are:Ares_odpovedi xmlns:are="http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_answer_or/v_1.0.3">
<are:Odpoved>
some_plain_text_stuff
</are:Odpoved>
</are:Ares_odpovedi>
<#ftl ns_prefixes={"are":"http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_answer_or/v_1.0.3"}>
${.vars["are:Ares_odpovedi/are:Odpoved"]}
Error during processing of the template 'Expression .vars["are:Ares_odpovedi/are:Odpoved"] is undefined on line 3, column 3 in workspace://SpacesStore/1abe32d0-71af-11dc-9d7c-4531dcb10a32.'. Please contact your system administrator.
10-04-2007 03:35 PM
${Ares_odpovedi.Odpoved}
10-05-2007 04:09 AM
<#ftl ns_prefixes={"are":"http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_answer_or/v_1.0.3"}>
${Ares_odpovedi.Odpoved}
generates (even thought its defined a line above)
Error during processing of the template 'Expression Ares_odpovedi is undefined on line 2, column 3 in workspace://SpacesStore/1abe32d0-71af-11dc-9d7c-4531dcb10a32.'. Please contact your system administrator.
Nor this one<#ftl ns_prefixes={"are":"http://wwwinfo.mfcr.cz/ares/xml_doc/schemas/ares/ares_answer_or/v_1.0.3"}>
<#assign Ares_odpovedi = .vars["are:Ares_odpovedi"]>
generatesError during processing of the template 'Error on line 3, column 1 in workspace://SpacesStore/1abe32d0-71af-11dc-9d7c-4531dcb10a32 .vars["are:Ares_odpovedi"] is undefined. It cannot be assigned to Ares_odpovedi'. Please contact your system administrator.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.