Hi Pradeep,
The HTML inside your .xqy file is parsed and rerendered by MarkLogic Server. It
is likely that there are subtle differences in indentation and white-spaces.
You best save the HTML generated from the xqy from your browser, and compare
with your manually made HTML file. In particular empty elements, or to be more
precise, the end slash in them that is only known to XML. Most browser handle
HTML formatted as XML quite badly. You best render empty elements as a pair of
open and close tags, by putting in a non-breaking space or something like that
if necessary.
MarkLogic Server 4.2 also supports specifying output formatting, using
something like:
declare option xdmp:output "method = html";
But haven't tried it myself yet on your case..
Oh, you didn't use them in your HTML, but if you are going to, don't forget
that braces need to be escaped in literal elements within XQuery. You do so by
doubling them:
<style>.mycssclass {{ color: black; }}</style>
Kind regards,
Geert
>
drs. G.P.H. (Geert) Josten
Consultant
Daidalos BV
Hoekeindsehof 1-4
2665 JZ Bleiswijk
T +31 (0)10 850 1200
F +31 (0)10 850 1199
mailto:[email protected]
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit e-mailbericht - is afkomstig van
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit
bericht kunnen geen rechten worden ontleend.
> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> Pradeep Maddireddy
> Sent: woensdag 24 november 2010 18:22
> To: General Mark Logic Developer Discussion
> Subject: [MarkLogic Dev General] Bubble popup html Vs XQY
>
> Hi..!
>
> I need to display a page with url's of few images on hovering
> over them I need to display a popup of the image. I am using
> a JQuery bubble pop plug-in to accomplish this.
>
> When I use a module with .html extension and place it in the
> web-server root it works fine. But when I change the
> extension to .xqy it doesn't work as expected. The code is
> same in both the cases except for the xquery version
> statement. As I need to include more functionality I will
> need a .xqy file.
>
> The image url's will be displayed one after another. When I
> move the cursor to the first url the popup gets displayed,
> when I drag it down to the next url the popup is not shown.
> But instead for the very first time if point the cursor
> directly on the second url it displays the popup. This
> problem occurs only when the extension is .xqy and not .html.
>
> Attached zip file has the code. Just place this code in any
> of your webserver root and point the browser (Firefox) to
>
> http://localhost:8008/bubble/test-bubble.html
> http://localhost:8008/bubble/test-bubble.xqy
>
> I have spent lot of time figuring out the problem. Any help
> (from Marklogic team) will be greatly appreciated.
>
>
> Thanks
> Pradeep M
>
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general