[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qexo-general] HTML, Java script, CSS
From: |
Per Bothner |
Subject: |
Re: [Qexo-general] HTML, Java script, CSS |
Date: |
Mon, 16 Jun 2003 21:40:46 -0700 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4b) Gecko/20030507 |
Seshukumar Venkata Adiraju wrote:
Hi,
There is a how to write html using xquery document, but it does not cover
Aspects like how to use it along with css and java script.
http://www.gnu.org/software/qexo/XQ-Gen-XML.html
includes an example of using css and javascript.
Also some characters don’t get printed correctly even though they are
not in {} xquery expressions.
"Correctly" is in the eye of the beholder. A {} does not change
printing - just whether data are static or dynamic.
For example how to print < and > instead of < and >
Well, if you're generating XHTML (which is the default) or XML you
have to emit < and >. If you want to generate HTML, try
passing the --output-format html flag to Kawa. Or you can use the
unescaped-data(STRING) function to emit data that has the quoting
disabled:
unescaped-data(data)
Creates a special value which causes data to be printed,
as is, without normal escaping. For example, when the output
format is XML, then printing "<?xml?>" prints as '<?xml?>',
but unescaped-data("<?xml?>") prints as '<?xml?>'.
--
--Per Bothner
address@hidden http://per.bothner.com/