{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"typo3 fluid namespaces","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/81 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"81\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <div class=\"code\"><pre class=\"txt\">fluid templates: Is there a way to use the normal XML-style declaration of namespaces when I don't have a top-level html element?\r\n\r\nsuch as &lt;f:if xmlns:foo=&quot;http:\/\/typo3.org\/ns\/foo\\bar&quot; condition=&quot;...&quot;&gt; ?\r\n\r\nor maybe a dummy toplevel element that does not get rendered?<\/pre><\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/81\/rev-raw\/be762cd71ce4fc5dbd67b248b5317746947e3f43\/0 question.txt\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/81#0 question.txt\">0 question.txt<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <style type=\"text\/css\">\/**\n * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann\n * (http:\/\/qbnz.com\/highlighter\/ and http:\/\/geshi.org\/)\n *\/\n.xml .de1, .xml .de2 {font: normal normal 1em\/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}\n.xml  {font-family:monospace;}\n.xml .imp {font-weight: bold; color: red;}\n.xml li, .xml .li1 {color: #DDD;}\n.xml .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}\n.xml .es0 {color: #000099; font-weight: bold;}\n.xml .br0 {color: #66cc66;}\n.xml .sy0 {color: #66cc66;}\n.xml .st0 {color: #ff0000;}\n.xml .sc-1 {color: #808080; font-style: italic;}\n.xml .sc0 {color: #00bbdd;}\n.xml .sc1 {color: #ddbb00;}\n.xml .sc2 {color: #339933;}\n.xml .sc3 {color: #009900;}\n.xml .re0 {color: #000066;}\n.xml .re1 {color: #000000; font-weight: bold;}\n.xml .re2 {color: #000000; font-weight: bold;}\n.xml span.xtra { display:block; }\n<\/style><div class=\"code\"><table class=\"xml\"><tbody><tr class=\"li1\"><td class=\"ln\"><pre class=\"de1\">1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n<\/pre><\/td><td class=\"de1\"><pre class=\"de1\"><span class=\"sc3\"><span class=\"re1\">&lt;?xml<\/span> <span class=\"re0\">version<\/span>=<span class=\"st0\">&quot;1.0&quot;<\/span><span class=\"re2\">?&gt;<\/span><\/span>\n<span class=\"sc3\"><span class=\"re1\">&lt;html<\/span> <span class=\"re0\">xmlns:f<\/span>=<span class=\"st0\">&quot;TYPO3FluidViewHelpers&quot;<\/span> <span class=\"re0\">xmlns:at<\/span>=<span class=\"st0\">&quot;http:\/\/typo3.org\/ns\/foo\/bar\/ViewHelper&quot;<\/span><span class=\"re2\">&gt;<\/span><\/span>\n&#160;<span class=\"sc3\"><span class=\"re1\">&lt;f:comment<span class=\"re2\">&gt;<\/span><\/span><\/span>\n&#160; parameters:\n&#160; - &quot;datum&quot;: datum object with &quot;value&quot; property\n&#160; - &quot;key&quot;: array key, e.g. &quot;foo.bar&quot;\n&#160;<span class=\"sc3\"><span class=\"re1\">&lt;\/f:comment<span class=\"re2\">&gt;<\/span><\/span><\/span>\n&#160;<span class=\"sc3\"><span class=\"re1\">&lt;f:if<\/span> <span class=\"re0\">condition<\/span>=<span class=\"st0\">&quot;{datum}&quot;<\/span><span class=\"re2\">&gt;<\/span><\/span>\n&#160; <span class=\"sc3\"><span class=\"re1\">&lt;li<span class=\"re2\">&gt;<\/span><\/span><span class=\"re1\">&lt;at:textdb<\/span> <span class=\"re0\">key<\/span>=<span class=\"st0\">&quot;{key}&quot;<\/span><span class=\"re2\">\/&gt;<\/span><span class=\"re1\">&lt;\/li<span class=\"re2\">&gt;<\/span><\/span><\/span>\n&#160;<span class=\"sc3\"><span class=\"re1\">&lt;\/f:if<span class=\"re2\">&gt;<\/span><\/span><\/span>\n<span class=\"sc3\"><span class=\"re1\">&lt;\/html<span class=\"re2\">&gt;<\/span><\/span><\/span><\/pre><\/td><\/tr><\/tbody><\/table><\/div>\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/81\/rev-raw\/be762cd71ce4fc5dbd67b248b5317746947e3f43\/1 partial.xml\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/81#1 partial.xml\">1 partial.xml<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <style type=\"text\/css\">\/**\n * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann\n * (http:\/\/qbnz.com\/highlighter\/ and http:\/\/geshi.org\/)\n *\/\n.xml .de1, .xml .de2 {font: normal normal 1em\/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}\n.xml  {font-family:monospace;}\n.xml .imp {font-weight: bold; color: red;}\n.xml li, .xml .li1 {color: #DDD;}\n.xml .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}\n.xml .es0 {color: #000099; font-weight: bold;}\n.xml .br0 {color: #66cc66;}\n.xml .sy0 {color: #66cc66;}\n.xml .st0 {color: #ff0000;}\n.xml .sc-1 {color: #808080; font-style: italic;}\n.xml .sc0 {color: #00bbdd;}\n.xml .sc1 {color: #ddbb00;}\n.xml .sc2 {color: #339933;}\n.xml .sc3 {color: #009900;}\n.xml .re0 {color: #000066;}\n.xml .re1 {color: #000000; font-weight: bold;}\n.xml .re2 {color: #000000; font-weight: bold;}\n.xml span.xtra { display:block; }\n<\/style><div class=\"code\"><table class=\"xml\"><tbody><tr class=\"li1\"><td class=\"ln\"><pre class=\"de1\">1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n<\/pre><\/td><td class=\"de1\"><pre class=\"de1\">...\n&#160;\n<span class=\"sc3\"><span class=\"re1\">&lt;ul<span class=\"re2\">&gt;<\/span><\/span><\/span>\n&#160;\n<span class=\"sc3\"><span class=\"re1\">&lt;?xml<\/span> <span class=\"re0\">version<\/span>=<span class=\"st0\">&quot;1.0&quot;<\/span><span class=\"re2\">?&gt;<\/span><\/span>\n<span class=\"sc3\"><span class=\"re1\">&lt;html<\/span> <span class=\"re0\">xmlns:f<\/span>=<span class=\"st0\">&quot;TYPO3FluidViewHelpers&quot;<\/span> <span class=\"re0\">xmlns:at<\/span>=<span class=\"st0\">&quot;http:\/\/typo3.org\/ns\/foo\/bar\/ViewHelper&quot;<\/span><span class=\"re2\">&gt;<\/span><\/span>\n&#160;<span class=\"sc3\"><span class=\"re1\">&lt;li<span class=\"re2\">&gt;<\/span><\/span><\/span>Foo<span class=\"sc3\"><span class=\"re1\">&lt;\/li<span class=\"re2\">&gt;<\/span><\/span><\/span>\n<span class=\"sc3\"><span class=\"re1\">&lt;\/html<span class=\"re2\">&gt;<\/span><\/span><\/span>\n&#160;\n<span class=\"sc3\"><span class=\"re1\">&lt;?xml<\/span> <span class=\"re0\">version<\/span>=<span class=\"st0\">&quot;1.0&quot;<\/span><span class=\"re2\">?&gt;<\/span><\/span>\n<span class=\"sc3\"><span class=\"re1\">&lt;html<\/span> <span class=\"re0\">xmlns:f<\/span>=<span class=\"st0\">&quot;TYPO3FluidViewHelpers&quot;<\/span> <span class=\"re0\">xmlns:at<\/span>=<span class=\"st0\">&quot;http:\/\/typo3.org\/ns\/foo\/bar\/ViewHelper&quot;<\/span><span class=\"re2\">&gt;<\/span><\/span>\n&#160;<span class=\"sc3\"><span class=\"re1\">&lt;li<span class=\"re2\">&gt;<\/span><\/span><\/span>Bar<span class=\"sc3\"><span class=\"re1\">&lt;\/li<span class=\"re2\">&gt;<\/span><\/span><\/span>\n<span class=\"sc3\"><span class=\"re1\">&lt;\/html<span class=\"re2\">&gt;<\/span><\/span><\/span>\n&#160;\n&#160;\n<span class=\"sc3\"><span class=\"re1\">&lt;\/ul<span class=\"re2\">&gt;<\/span><\/span><\/span>\n&#160;\n...<\/pre><\/td><\/tr><\/tbody><\/table><\/div>\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/81\/rev-raw\/be762cd71ce4fc5dbd67b248b5317746947e3f43\/2 output.html\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/81#2 output.html\">2 output.html<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <div class=\"code\"><pre class=\"txt\">solution: &lt;f:render partial=&quot;foo&quot; section=&quot;p&quot; arguments=&quot;{datum: datum, key:key}&quot; \/&gt; and a &lt;f:section name=&quot;p&quot;&gt; around the &lt;li&gt;\r\n\r\nNote that this does not work for layouts :\/<\/pre><\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/81\/rev-raw\/be762cd71ce4fc5dbd67b248b5317746947e3f43\/3 solution.txt\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/81#3 solution.txt\">3 solution.txt<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
