[ http://jira.codehaus.org/browse/MPPDF-40?page=comments#action_44982 ] 

Arnaud Heritier commented on MPPDF-40:
--------------------------------------

Another idea to improve ids with the default naming  is to generate them from 
the section/subsections tree.
For exemple :
<section name="A"> ==> Generates id="A"
  <subsection name="B"> ==> Generates id="A_B"
    <subsection name="C"> ==> Generates id="A_B_C"
    </subsection>
  </subsection>
  <subsection name="D"> ==> Generates id="A_D"
  </subsection>
</section>
I don't know if there's a maximum number of chars in an id.

> Can't use 2 subsections with the same name
> ------------------------------------------
>
>          Key: MPPDF-40
>          URL: http://jira.codehaus.org/browse/MPPDF-40
>      Project: maven-pdf-plugin
>         Type: Bug
>     Versions: 2.3
>     Reporter: Arnaud Heritier
>     Priority: Critical
>  Attachments: MPPDF-40.patch
>
>
> If 2 subsections have the same name the pdf generation fails because they 
> have the same id.
> For exemple :
>     <section name="Section 1">
>       <subsection name="SubSection">
>       </subsection>
>     </section>
>     <section name="Section2">
>       <subsection name="SubSection">
>       </subsection>
>     </section>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to