[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacspeak-w3-xslt-filter The State of Web Browsing in Emacspeak [very long]



Write yourself a strip-style.xsl as follows:

You can start by copying default.xsl (which imports identity.xsl
and does nothing else.


>>>>> "Robert" == Robert D Crawford <rdc1x@comcast.net> writes:
    Robert> "T. V. Raman" <raman@users.sf.net> writes:
    >> I myself haven't run into trouble with w3 applying css --
    >> since I had the wrapper advice around the css parser in my
    >> environment (now checked in in emacspeak-w3).
    Robert> 
    Robert> The problem I am having is a really niggling
    Robert> thing... more of an annoyance than anything major.
    Robert> Some pages I seem to visit and some emails I get
    Robert> specify styles that change the font size, coloring,
    Robert> and backgrounds.  I find this to be _highly_
    Robert> annoying.  Even more annoying than HTML mail itself.
    Robert> I think this might be from inline styles and pages
    Robert> that have styles in a style tag instead of calling a
    Robert> stylesheet.
    Robert> 
    >> An XPath tutorial is again outside the scope of Emacspeak
    >> docs, but you might want to write a short section as a
    >> means of teaching it to yourself.
    Robert> 
    Robert> I was more thinking of a paragraph than a full-blown
    Robert> tutorial.  Instead, I am providing a link to the
    Robert> wikipedia page.
    Robert> 
    Robert> Thanks, rdc -- Robert D. Crawford rdc1x@comcast.net
    Robert> 
    Robert> I wish you were a Scotch on the rocks.
    Robert> 
    Robert> -----------------------------------------------------------------------------
    Robert> To unsubscribe from the emacspeak list or change your
    Robert> address on the emacspeak list send mail to
    Robert> "emacspeak-request@cs.vassar.edu" with a subject of
    Robert> "unsubscribe" or "help"
To this add rules that throw away style elements and style
    Robert> attributes (do not throw away class attributes.

the xsl for that would be something like
<xsl:template match="//style"/>
<xsl:template match="@style"/>

-- 
Best Regards,
--raman

      
Email:  raman@users.sf.net
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs

-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
subject of "unsubscribe" or "help"



If you have questions about this archive or had problems using it, please send mail to:

priestdo@cs.vassar.edu No Soliciting!

Emacspeak List Archive | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998

Emacspeak Files | Emacspeak Blog | Search the archive