Re: output html as lower case?

Jacob Kjome <[email protected]>
Newsgroups gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
Hi Mark,

At 01:57 PM 6/23/2003 -0700, you wrote:
>Jacob Kjome <[email protected]> writes:
> > is for things like XPath which, being an application of
> > XML, is also case sensitive.  If I write an XPath expression, it will only
> > work on HTML and not XHTML or vice-versa, but not both.
>
>Being able to write common expressions for XHTML/HTML is good; explain
>what environment you are using XPath in.  You have to have the
>document parsed into a DOM, right?

Check out David Li's JXPath demo.  The DOM is generated by XMLC and then 
XPath is used to query nodes in the dom.  Try the following, for example...

xpath demo.XPath input/Test.html "/HTML/BODY/TABLE[@id='t2']"

Now, if that was XHTML, I'd have to do this...

xpath demo.XPath input/Test.html "/html/body/table[@id='t2']"

I'd like to be able to use the latter in all cases, not worry about whether 
I am querying HTML or XHTML.

When you test it out, make sure to create a "build.properties" file based 
on the "build.properties.example" file and specify where the jxpath.jar 
file is located.  Then just run "ant" to build the demo.  xpath.bat and 
xpath.sh are created in the root of the JXPath demo for running the 
examples (as I used in the examples above).

Note that for XMLC-3.0, David plans on utilizing XPath to a great degree, 
so this case-sensitivity stuff is really of important for that, but I'd 
really like to see it resolved for the XMLC-2.2 release.

Jake

>Mark
>_______________________________________________
>XMLC mailing list
>[email protected]
>http://www.enhydra.org/mailman/listinfo.cgi/xmlc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.