Accounts Questions
Josh Sled
jsled at asynchronous.org
Wed Jan 11 08:15:40 EST 2006
On Wed, 2006-01-11 at 06:55 +0100, linux at strigen.com wrote:
> 1: I found the fault...(Why my norwegian accounts didn't work) The
> Conglomerate XML editor is cutting away the "gnc-act:" from the xml tags.
> (A bug i think... it does it with all the files it edits). An updated
> norwegian account list will be sent later. Shouldn't there be an error
> issued when the account files are badly formed? (My accounts didn't show
> up at all, even if there was only one file that was wrong.)
It probably does this because that part of the tag ["gnc-act:"] is
lexically an XML namespace name, but there are no namespaces declared at
the top of the file. Were I the software, I would complain about this
loudly; GnuCash should traffic in correctly-namespaced account-template
files, as we now do in the datafile.
[Alternatively, we could remove the namespaces all together, and just
have a single (default) namespace... changing <gnc:account> to
<gnc-account>, <cmdty:space> to <cmdty-space>, &c.]
Given that we ignore namespaces now, you can probably add the following
namespace declarations to the top of the account-templates to get
Conglomerate to work:
<gnc-v2
xmlns:gnc="http://www.gnucash.org/XML/gnc"
xmlns:act="http://www.gnucash.org/XML/act"
xmlns:book="http://www.gnucash.org/XML/book"
xmlns:cd="http://www.gnucash.org/XML/cd"
xmlns:cmdty="http://www.gnucash.org/XML/cmdty"
xmlns:price="http://www.gnucash.org/XML/price"
xmlns:slot="http://www.gnucash.org/XML/slot"
xmlns:split="http://www.gnucash.org/XML/split"
xmlns:sx="http://www.gnucash.org/XML/sx"
xmlns:trn="http://www.gnucash.org/XML/trn"
xmlns:ts="http://www.gnucash.org/XML/ts"
xmlns:cust="http://www.gnucash.org/XML/cust"
xmlns:job="http://www.gnucash.org/XML/job"
xmlns:addr="http://www.gnucash.org/XML/addr"
xmlns:owner="http://www.gnucash.org/XML/owner"
xmlns:taxtable="http://www.gnucash.org/XML/taxtable"
xmlns:tte="http://www.gnucash.org/XML/tte"
xmlns:employee="http://www.gnucash.org/XML/employee"
xmlns:order="http://www.gnucash.org/XML/order"
xmlns:billterm="http://www.gnucash.org/XML/billterm"
xmlns:bt-days="http://www.gnucash.org/XML/bt-days"
xmlns:bt-prox="http://www.gnucash.org/XML/bt-prox"
xmlns:invoice="http://www.gnucash.org/XML/invoice"
xmlns:entry="http://www.gnucash.org/XML/entry"
xmlns:vendor="http://www.gnucash.org/XML/vendor">
--
...jsled
http://asynchronous.org/ - `a=jsled; b=asynchronous.org; echo ${a}@${b}`
More information about the gnucash-devel
mailing list