vanishing .xac and .log files
Josh Sled
jsled at asynchronous.org
Fri Aug 17 09:47:32 EDT 2007
hendrik at topoi.pooq.com writes:
> Now I need a tool that will tell me all the differences between
> reconciled splits between those two .xac files. Anyone know of one?
> output from diff itself (after gunzipping, of course) contains too much
> irrelevant junk, and consists of uncontexted fragments of
> transactions.
(I've seen you on another couple of mailing lists, so I know you're a good
bit technical...)
I'd extract the relevant Splits via XSLT, though not to XML .. just
line-oriented plain text. Probably something like:
Split1GUID Split1Date Split1Desc Split1Acct Split1Amt
Split2GUID Split2Date Split2Desc Split2Acct Split2Amt
Then, /usr/bin/sort it so the splits are ordered by guid. Then do the
line-oriented diff.
Something like...
<xsl:output method="text"/>
<xsl:template match="//trn:split[split:reconciled-state='y']">
<xsl:value-of select="./split:id/text()"/><xsl:text> </xsl:text>
<xsl:value-of select="./split:memo/text()"/><xsl:text> </xsl:text>
<!-- ... -->
</xsl:template>
Should do the trick, I think.
--
...jsled
http://asynchronous.org/ - a=jsled; b=asynchronous.org; echo ${a}@${b}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-user/attachments/20070817/d26b8ed8/attachment.bin
More information about the gnucash-user
mailing list