|
Re: output html as lower case?: msg#00030java.enhydra.xmlc
Just a little update. I asked on the Jaxen-interest list about treating the HTML DOM in a case-insensitive manner. The one response I got made it sound like it isn't supported currently, but there is at least one (ugly) workaround. Given the following XPath _expression_ which would be valid for XHTML.... "/html/head/title" would have to be modified to the following for HTML "/HTML/HEAD/TITLE" That is, unless one uses a nifty trick (some might call it a hack) "/*[name()='html' or name()='HTML']/*[name()='head' or name()='HEAD']/*[name()='title' or name()='TITLE']" I actually tested that with Jaxen and it works. However, JXPath returns nothing. Jaxen is much better about following the spec as far as I can tell and if we are moving to DOM4J in XMLC-3.0, we will get Jaxen support out-of-the-box, since that is what DOM4J's XPath implementation is based upon. Anyway, I'll keep on the Jaxen guys to support the HTML DOM in a case-insensitive way. Jake At 11:24 AM 6/24/2003 -0500, you wrote: At 08:33 AM 6/24/2003 -0700, you wrote:
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Using XMLC with XML, Jacob Kjome |
|---|---|
| Next by Date: | Re: Using XMLC with XML, Alberto Quario |
| Previous by Thread: | Re: output html as lower case?, Jacob Kjome |
| Next by Thread: | Re: output html as lower case?, Jacob Kjome |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |