← Back to team overview

dhis2-devs team mailing list archive

Re: [Bug 1266754] Re: Generate help content

 

I did not try to compile the application with the XML file but the XML
itself was valid. What problem are you having exactly?

--Sent from my mobile
On Jan 13, 2014 12:11 PM, "Paulo Grácio" <pgracio@xxxxxxxxxxxxxxxxxxxx>
wrote:

> Hi Jason,
>
>
>
> Have you tried this? I have tried your suggestion but seems not to be
> working L
>
>
>
> Regards,
>
> Paulo Grácio
>
>
>
> *From:* Dhis2-devs [mailto:dhis2-devs-bounces+pgracio=
> criticalsoftware.com@xxxxxxxxxxxxxxxxxxx] *On Behalf Of *Jason Pickering
> *Sent:* sábado, 11 de Janeiro de 2014 05:07
> *To:* Bug 1266754
> *Cc:* dhis2-devs
> *Subject:* Re: [Dhis2-devs] [Bug 1266754] Re: Generate help content
>
>
>
> Hi Paulo,
>
>
>
> I got your file and this XML file needs a '<![CDATA[' tag on line 1988.
> After that it seems to be valid XML at least.
>
>
>
> This is caused by line 21 of the script 'if [[ ${LINE} =~
> (<\?xml|<!DOCTYPE|<!ENTITY) ]];'   which deletes this line from the help
> file.
>
>
>
> Not sure who came up with the script, but I guess this needs to be fixed.
>
>
>
> Regards,
>
> Jason
>
>
>
>
>
> On Wed, Jan 8, 2014 at 5:43 PM, Jason Pickering <
> jason.p.pickering@xxxxxxxxx> wrote:
>
> Can you please send me the file privately and I will take a look at it and
> report back?
>
> --Sent from my mobile
>
> On Jan 8, 2014 5:25 PM, "Paulo Grácio" <pgracio@xxxxxxxxxxxxxxxxxxxx>
> wrote:
>
> Hi Jason,
>
> the problem in fact is that if we create a new DHIS2 build with the
> generated file when rendering it you have the following exception:
>
> Caused by: javax.xml.transform.TransformerException:
> javax.xml.transform.TransformerException:
> com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: The element
> type "section" must be terminated by the matching end-tag "</section>".
>         at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:739)
>         at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:340)
>         at
> org.hisp.dhis.help.DefaultHelpManager.getHelpItems(DefaultHelpManager.java:90)
>         ... 96 more
> Caused by: javax.xml.transform.TransformerException:
> com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: The element
> type "section" must be terminated by the matching end-tag "</section>".
>         at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:568)
>         at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:729)
>         ... 98 more
> Caused by: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException:
> The element type "section" must be terminated by the matching end-tag
> "</section>".
>         at
> com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:464)
>         at
> com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:252)
>         at
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:546)
>
> --
> You received this bug notification because you are a member of DHIS 2
> developers, which is subscribed to DHIS.
> https://bugs.launchpad.net/bugs/1266754
>
> Title:
>   Generate help content
>
> Status in DHIS 2:
>   New
>
> Bug description:
>   I was trying to generate help_content file based on our translation to
>   Portuguese. To make sure I was doing everything correct I tried to
>   generate first the default file based on English translation to check
>   if the contents were the same. What I did was:
>
>   -     Copy script from resources/util/compile_help_content.sh script to
> /dhis2-docs/dhis2-docbook-docs/src/docbkx/en
>   -     Execute ./compile_help_content.sh
>
>   Once the generated file is different from the one in /dhis-2/dhis-
>   services/dhis-service-core/src/main/resources/help_content.xml I guess
>   I’m doing something wrong… any idea?
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dhis2/+bug/1266754/+subscriptions
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
>

Follow ups

References