*Executive summary*: For the first time, Leo allows you to change 
xml-stylesheet elements in a reasonable way.  
Few will care.  For those who *do *care, pay attention.  The details are a 
bit complex.

Leo now *writes *xml-stylesheet elements of the form::
 
    <?xml-stylesheet x ?>
    
where x comes from *either*:
    
*Source 1*: @string stylesheet settings

When *writing *the .leo file Leo will use the setting in effect when Leo *read 
*the .leo file.
    
If you change the @string stylesheet setting in a .leo file, it will take 
effect the *next *time you invoke Leo.

*Source 2*: Any xml-stylesheet element in the existing file.

But *only *if the stylesheet is empty.

Again, When *writing *the .leo file Leo will use the xml-stylesheet in 
effect when Leo *read *the .leo file.
   
*Note*: Leo does *not *use Source 2 for leoSettings.leo or 
myLeoSettings.leo files themselves. This is a workaround for an apparent 
sax parsing bug.

All questions and comments welcome.  This is a minor feature, but it's been 
bugging me for a long time.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to