I don't understand what you're trying to do here.   The gnucash-xea
files are not docbook files.  They are GnuCash Example Account
hiersrchies.

-derek

Quoting Pawan Chitrakar <[EMAIL PROTECTED]>:

Please advice on converting docbook accounts file to po and vice versa

coz xml2po doesnot keep all the xml tag like for example

The commands i used are
xml2po -o ne.po -k acctchrt_brokerage.gnucash-xea
xml2po -o ne.xml -p ne.po -k acctchrt_brokerage.gnucash-xea

----------------------------------------------
original

<?xml version="1.0" encoding="ISO-8859-1"?>
<gnc-account-example>
   <gnc-act:title>
    Investment Accounts
   </gnc-act:title>
   <gnc-act:short-description>
     Brokerage account with related investment accounts (stock, bond,
mutual fund, index fund, interest, dividend)
   </gnc-act:short-description>
   <gnc-act:long-description>
   You would want to select this set of accounts if you have investments
(stock, bond, mutual fund, index fund, interest, dividend).
 </gnc-act:long-description>
------------------------------------------------------------------------
converted po (ne.po)
#: acctchrt_brokerage.gnucash-xea:3(title)
msgid "Investment Accounts"
msgstr "Test translate"

#: acctchrt_brokerage.gnucash-xea:6(short-description)
msgid "Brokerage account with related investment accounts (stock, bond,
mutual fund, index fund, interest, dividend)"
msgstr ""

#: acctchrt_brokerage.gnucash-xea:9(long-description)
msgid "You would want to select this set of accounts if you have investments
(stock, bond, mutual fund, index fund, interest, dividend)."
msgstr ""
------------------------------------------------
reverse converted xml (ne.xml)
<?xml version="1.0" encoding="utf-8"?>
<gnc-account-example>
   <title>Test translate</title>
   <short-description>Brokerage account with related investment accounts
(stock, bond, mutual fund, index fund, interest,
dividend)</short-description>
   <long-description>You would want to select this set of accounts if you
have investments (stock, bond, mutual fund, index fund, interest,
dividend).</long-description>

-----------------------------------------------------------------

how can i get the original tagset ????

thanks in advance

pawan




--
      Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
      Member, MIT Student Information Processing Board  (SIPB)
      URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
      [EMAIL PROTECTED]                        PGP key available

_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to