Bug 62369 - After saving the file, some custom XML information is lost (style sheet association)
Summary: After saving the file, some custom XML information is lost (style sheet assoc...
Status: RESOLVED INTENTIONAL
Alias: None
Product: kvoctrain
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Frederik Gladhorn
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-08 10:43 UTC by (defunct account)
Modified: 2007-11-28 02:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description (defunct account) 2003-08-08 10:43:42 UTC
Version:           1.0 (using KDE 3.1.0)
Installed from:    Mandrake Linux Cooker i586 - Cooker
Compiler:          gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
OS:          Linux (i686) release 2.4.21-0.13mdk

Since I want to print the content of the flashcard file, I decided to associate a CSS file and display it in the browser, from where I could print it.

This is how the beginning of my file looks like:

<?xml version="1.0"?>
<?xml-stylesheet href="kvoctrain.css" type="text/css"?>
<!DOCTYPE kvtml SYSTEM "kvoctrain.dtd">

Now, whenever I open the file with kvoctrain, add a card and save it, the xml-stylesheet line gets deleted.

IMHO since you are using the XML format for storing the information, correct XML snippets should not get deleted, just ignored if you don't use them.
Comment 1 Stephan Binner 2003-08-10 12:41:51 UTC
So the bug is in KVoctrain? I'm confused. 
Comment 2 Peter Hedlund 2004-06-18 19:33:59 UTC
FlashKard has been replaced by KWordQuiz. KWordQuiz (as did FlashKard) writes files from scratch when saved. Thus outside elements added by the user are lost. I think KVocTrain behaves the same.
Comment 3 Peter Hedlund 2007-09-18 23:04:57 UTC
I hope you don't mind Frederik, but this is really for the library, which we don't have a product for. Maybe you and/or Jeremy can think about this one?
Comment 4 Frederik Gladhorn 2007-09-18 23:31:27 UTC
Wow! Sounds interesting, maybe you could make your stylesheet public? Currently we produce our internal data structure by reading the file and recreate it from scratch.
Maybe we could generally include a style sheet to better display the documents in browsers? I have no clue about css actually. Adding nice printing options would be very good.

Greetings,
Frederik
Comment 5 Frederik Gladhorn 2007-11-28 02:31:15 UTC
Work has started on creating xsl templates for kvtml. Everyone is welcome to improve. Contact me if you are interested.