[xquery-talk] Getting a bare & and > into HTML for Javascript

David Lee dlee at calldei.com
Wed Jul 20 09:35:40 PDT 2011

In this case parts of the javascript actually need inline expansion from the
Xquery code - its not 100% static 

(I'm creating a dynamic Google Chart ) ...

But thats temporary ... Ive implemented a library to detach the data from
the static JS ... mostly ...

Now that I can have it both ways so I can determine what the *best* way is
in any case.

David A. Lee
dlee at calldei.com

-----Original Message-----
From: talk-bounces at x-query.com [mailto:talk-bounces at x-query.com] On Behalf
Of Andrew Welch
Sent: Wednesday, July 20, 2011 12:33 PM
To: David Lee
Cc: talk at x-query.com
Subject: Re: [xquery-talk] Getting a bare & and > into HTML for Javascript

> This is an experimental prototype so I'm stumbling on new ground ...

I've done the same enough times now.. this is how it typically happens:

- start by quickly writing some xquery to knock up a prototype
- discover you need some small bit of javascript, so add it into the
xquery you writing
- spend way too long trying to get that small bit of js to work
- think to yourself "I should be able to do this", and spend more time
trying to get it to work
- give in and move the javascript to its own .js file
- and then before long you inevitably have multiple js files and
hundreds of lines of js, and you think to yourself why did I waste my
time trying to get that initial small bit of js working in the

Glad it's not just me having the issue :)

Andrew Welch
talk at x-query.com

More information about the talk mailing list