Re: emacs lisp text processing example (html5 figure/figcaption)

2011-07-04 Thread S.Mandl
Nice. I guess that XSLT would be another (the official) approach for
such a task.
Is there an XSLT-engine for Emacs?

-- Stefan
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: emacs lisp text processing example (html5 figure/figcaption)

2011-07-05 Thread S.Mandl
> haven't used XSLT, and don't know if there's one in emacs...
>
> it'd be nice if someone actually give a example...
>

Hi Xah, actually I have to correct myself. HTML is not XML. If it
were, you
could use a stylesheet like this:


http://www.w3.org/1999/XSL/Transform";>


  

  



  

  



  

  





which applied to this document:



Just having funwith all the

  
  
  my 2 cats

cats here:
Just fooling around

  
  jamie's cat! Her blog is http://example.com/
jamie/">http://example.com/jamie/



would yield:



Just having funwith all the

  
  
  my 2 cats

cats here:
Just fooling around

  
  jamie's cat! Her blog is http://example.com/jamie/



But well, as you don't have XML as input ... there really was no point
to my remark.

Best,
Stefan
-- 
http://mail.python.org/mailman/listinfo/python-list