You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by er...@apache.org on 2011/02/27 21:31:43 UTC

svn commit: r1075138 - /ofbiz/trunk/applications/content/template/HelpTemplate.ftl

Author: erwan
Date: Sun Feb 27 20:31:42 2011
New Revision: 1075138

URL: http://svn.apache.org/viewvc?rev=1075138&view=rev
Log:
manage anchor tag with xml:id attribute in title for docbook documentation

Modified:
    ofbiz/trunk/applications/content/template/HelpTemplate.ftl

Modified: ofbiz/trunk/applications/content/template/HelpTemplate.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/template/HelpTemplate.ftl?rev=1075138&r1=1075137&r2=1075138&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/template/HelpTemplate.ftl (original)
+++ ofbiz/trunk/applications/content/template/HelpTemplate.ftl Sun Feb 27 20:31:42 2011
@@ -45,11 +45,19 @@ under the License.
 <#macro section inSection level first="no">
   <#list inSection.* as subSection>
     <#if subSection?node_name = "title">
-      <#if first = "yes">
-        <h1>${subSection}</h1>
-      <#else>
-        <br /><h${level}>${subSection}</h${level}>
-      </#if>
+      <#list subSection?children as subTitle>
+        <#if subTitle?node_type = "text">
+          <#if first = "yes">
+            <h1>${subTitle}</h1>
+          <#else>
+            <br /><h${level}>${subTitle}</h${level}>
+          </#if>
+        <#else>
+          <#if subTitle?node_name = "anchor">
+            <a name="${subTitle["@xml:id"]}" />
+          </#if>
+        </#if>
+      </#list>
     <#elseif subSection?node_name = "para">
         <p><@para para=subSection/></p>
     <#elseif subSection?node_name = "section">