[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

dynamic xhtml with xquery

Gary Lewis gary.m.lewis at gmail.com
Fri Jul 10 13:51:54 PDT 2009


  dynamic xhtml with xquery
I'm stuck on a problem that must occur frequently, yet lots of
reading, google searches, and xquery experimentation have not
yet provided a solution. I'm writing in hopes that someone can point
me to an faq or similar info.

Here's the situation. I'd like to use xquery to write dynamic xhtml
(ie, to write xhtml on-the-fly that can be viewed in a browser without
additional editing).

I started with a small project involving rss, using zorba's xquery
REST functionality and GET to access the rss (returned as xml). I then
wrote an xquery to serialize the xml and return xhtml. No problems
when displayed in a browser (Firefox) ... except for special
characters. As you'd expect, the GET returns angle brackets as <
and > and since the rss contains many href links there
are many of these < and > substitutions. The browser renders
them correctly as > and < but, naturally, the resulting href is
seen as text and not as a link.

I've tried lots of different possible solutions, all of which I
realize now were silly although useful for learning what not to do.

Any help would be much appreciated.

Thanks.

Gary Lewis


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.