logo       

Re: output html as lower case?: msg#00008

java.enhydra.xmlc

Subject: Re: output html as lower case?


Hi Mark,

At 01:57 PM 6/23/2003 -0700, you wrote:
Jacob Kjome <hoju@xxxxxxxx> 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
XMLC@xxxxxxxxxxx
http://www.enhydra.org/mailman/listinfo.cgi/xmlc
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise