On Tuesday, March 3, 2015 at 2:46:11 PM UTC-6, Edward K. Ream wrote:
>
> On Wednesday, February 25, 2015 at 4:20:23 PM UTC-6, Edward K. Ream wrote:
>
> > http://leoeditor.com/load-leo.html is a web page that will show you the 
> contents of a .leo file.
>
> This page is now uses a rewritten version of leo_to_html.xsl, committed at 
> 68f4e32 and just uploaded to leoeditor.com.  
>

I'll mention one stumbling block that took me days to figure out.  And the 
stack overflow answers are misleading, or just wrong.

It is either a very bad idea, or just plain impossible, to generate an 
attribute field using something like::

    id='<xsl:value-of select="@tx"/>

Instead, the proper way is::

    <xsl:attribute name="id"><xsl:value-of select='@tx'/></xsl:attribute>

This injects an "id" attribute in the enclosing element, and (presumably) 
handles all quote-related issues properly, something that is possible, but 
*very* difficult to do without <xsl:attribute>.  This is documented 
inadequately at http://www.w3schools.com/xsl/el_attribute.asp, a rare 
miss.  Imo, <xsl:attribute> should be mentioned prominently.

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