After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 514480 - xml2po ignores tags containing CDATA
xml2po ignores tags containing CDATA
Status: RESOLVED WONTFIX
Product: gnome-doc-utils
Classification: Deprecated
Component: xml2po
CVS HEAD
Other Linux
: Normal normal
: ---
Assigned To: gnome-doc-utils maintainers
Danilo Segan
gnome[unmaintained]
Depends on: 597216
Blocks:
 
 
Reported: 2008-02-05 08:53 UTC by Stephen Noble
Modified: 2020-03-03 18:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stephen Noble 2008-02-05 08:53:58 UTC
We wish to convert our xml data to .po to use on pootle.
It works well except for tags with CDATA

xml2po -m empty -e -o workgroup.po workgroup

Kind Regards
Stephen

Sample

   <entry>
       <base>FORM_TITLE</base>
       <trans>Change workgroup settings</trans>
   </entry>
   <entry>
       <base>DESC_WORKGROUP</base>
       <trans>
           <![CDATA[
           Enter the name of the Windows workgroup.
           ]]>
       </trans>
   </entry>
   <entry>
       <base>LABEL_WORKGROUP</base>
       <trans>Windows workgroup</trans>
   </entry>

#: workgroup:6(trans)
#, no-wrap
msgid "Change workgroup settings"
msgstr ""

#: workgroup:18(trans)
#, no-wrap
msgid "Windows workgroup"
msgstr ""
Comment 1 Stephen Noble 2008-02-05 08:56:43 UTC
Initial reply from Danilo

>It seems the problem is with libxml2 not handling cdata properly.  It
>provides an isText() method which returns 0 for cdata nodes.



Comment 2 Claude Paroz 2009-10-05 21:14:14 UTC
Should work with the partial xml2po rewrite waiting on #597216.
Comment 3 André Klapper 2020-03-03 18:36:20 UTC
gnome-doc-utils has been superseded by yelp-xsl, yelp-tools, and itstool.

gnome-doc-utils will not see any further development, hence closing as WONTFIX.

See https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/255