Subject: Re: [xsl] XSLT Text Processing: Fun with Anagrams From: "Rashmi Rubdi" <rashmi.sub@xxxxxxxxx> Date: Mon, 23 Apr 2007 12:34:27 -0400 |
Inside xmlverbatim_xhtml.xsl, I see that it is highlighting the syntax with (X)HTML span tags + class attributes.
Normally an author who is presenting the code also has their own class in the HTML tags, I think it would be nice if the class attribute values generated by an HTMLizer tool made the class attributes values unique in some way, that in case the author of the page used the same name it wouldn't conflict.
One example is to prefix each class attribute value with the initials of the tool's name followed by an underscore. For example in the case of UTFX it would be <span class="utfx_highlight"> instead of <span class="highlight">
I've seen this kind of prefixes in Javascript to avoid conflicts with the functions and variable names used by a website that is using multiple Javascript files from various sources.
-Regards Rashmi
utfxdoc_xhtml.xsl handles higher level elements such as sections, paras, lists etc ... the actual syntax highlighting is done by xmlverbatim_xhtml.xsl (originally by Oliver Becker)
On 4/24/07, Rashmi Rubdi <rashmi.sub@xxxxxxxxx> wrote: > Thank you. From looking at the name of the file: utfxdoc_xhtml.xsl > stylesheet produces the syntax highlighting in XHTML format, which is > also very useful.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT Text Processing: Fun, Jacek Radajewski | Thread | Re: [xsl] XSLT Text Processing: Fun, Jacek Radajewski |
RE: [xsl] Disjunctive reasoning in , Kenneth Bowen | Date | Re: [xsl] XSLT Text Processing: Fun, Jacek Radajewski |
Month |