GNOME Bugzilla – Bug 546623
export to html doesn't follow links
Last modified: 2009-04-23 01:56:41 UTC
this bug has been filed here: https://bugs.edge.launchpad.net/ubuntu/+source/tomboy/+bug/211118 "Suppose you make 3 notes like this: note A, with a link to note B and C note B - no links note C - no links When note A is exported with 'Export linked notes' and 'Include all other linked notes' checked it will export correctly, with notes B and C included below A. Now suppose you edit note B by adding a link to note C Now when note A is exported with 'Export linked notes' and 'Include all other linked notes' checked note C will be missing from the html results" Thanks,
NoteNameResolver allows resolving a note URI only once (in fact twice) to avoid endless loops of linked notes. But the current implementation of the stylesheet requires resolving a URI every time a link is created to an exported note. Patch follows.
Created attachment 116100 [details] [review] Resolve note URIs only once This patch removes the xsl:key stuff, that never worked, from the stylesheet. The key() function can only return a node-set from the current document, so it cannot keep a list of all processed documents. A note URI is resolved every time the document() function is used in the stylesheet but that is not necessary in the link:internal template. Now notes are only resolved once, when they are inserted into the resulting html document. I also changed the NoteNameResolver to maintain a list instead of a dictionary of already resolved notes.
You know best, Stefan. Can you commit this?
Committed in revision 2069.