commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: [jelly] making xml:expr case-insensitive
Date Thu, 19 Dec 2002 15:04:08 GMT
From: "James Strachan" <>
> From: "Bernhard Wagner" <>
> >
> >   1) Can I configure html:parse to change the case setting of the
> retrieved
> > document? How?
> The NeckoHTML parser already allows for this. I'll add these customisation
> options to the Jelly tag in a moment.

OK I've finished the unit tests - it seems to work fine now. Its all in CVS

You can now use NeckoHTML's features for turning elements or attributes
upper case or lower case (or in the case of elements, matching them) via
specifying an element and attribute attributes.

e.g. to upper case the elements but lowercase the attributes you can do...

    <html:parse var="doc" html="index.html" element="upper"

or to make everything lower case

    <html:parse var="doc" html="index.html" element="lower"

The default is to leave case as it was but to match element case (so that
open and close elements have the same case).


Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts

View raw message