Skip to Content.
Sympa Menu

xom-interest - RE: [XOM-interest] javascript

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Mustard, Sandy" <mustard AT ugs.com>
  • To: "xom-interest" <xom-interest AT lists.ibiblio.org>
  • Subject: RE: [XOM-interest] javascript
  • Date: Fri, 6 May 2005 13:43:49 -0400


Why not let XOM create the XML and then pass it to an XSLT transform to
generate your HTML. Put you javascipt in the XSL file.

Sandy Mustard

-----Original Message-----
From: xom-interest-bounces AT lists.ibiblio.org
[mailto:xom-interest-bounces AT lists.ibiblio.org] On Behalf Of Luca
Passani
Sent: Friday, May 06, 2005 10:04 AM
To: Elliotte Harold
Cc: xom-interest
Subject: Re: [XOM-interest] javascript

Elliotte Harold wrote:

>
> Right there is your problem. XOM does not generate text/html. It
> generates application/xml or perhaps application/xhtml+xml. Try one of

> those media types instead. But right now it's like you're pumping
> diesel fuel into an engine that expects regular and wondering why your

> car keeps backfiring.
>
Elliotte, I think you are really a smart guy and you have created a
totally cool tool. I respect you for that and I give praise where praise

is due.
On the other hand, please also try to see it the way of those poor
bastards like me who have multiple tasks to perform in their everyday
job but so little time for details. I need to build a small
proof-of-concept prototype, which implies the need to inject a tiny bit
of client-side scripting into my page. I am just a tiny step away from
the goal: turning &lt; into '<'.
That's how JavaScript has worked for years before XML and how all
browser still understand it.
How many books should I study before I can achieve that? do I need to go

back to the university?

RegExps are not powerful enough to parse XML/HTML. You are right about
that,
but, once I switch to XML, there must be an easier way than this to take

care of
details, don't you think?

Thank you

Luca

_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest





Archive powered by MHonArc 2.6.24.

Top of Page