XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
loes mertensSubject: h2 element is there but XQuery doesn't return h2
Author: loes mertens
Date: 28 Apr 2007 09:14 AM
The following HTML text contains several h2 elements.

However, when I convert this HTML to XHTML using JTidy, and then query the text using "for $d in //h2 return $d", XQuery doesn't return anything.

Any ideas on what's done wrong?









<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>keyword - Google Search</title><style><!--
div,td{color:#000}
.f{color:#666}
.flc,.fl:link{color:#77c}
a:link,.w,a.w:link,.w a:link,.q:visited,.q:link,.q:active,.q{color:#00c}
a:visited,.fl:visited{color:#551a8b}
a:active,.fl:active{color:red}
.t{background:#e5ecf9;color:#000}
.bb{border-bottom:1px solid #36c}
.bt{border-top:1px solid #36c}
.j{width:34em}
.h{color:#36c}
.i,.i:link{color:#a90a08}
.a,.a:link{color:green}
.z{display:none}
div.n{margin-top:1ex}
.n a{font-size:10pt;color:#000}
.n .i{font-size:10pt;font-weight:bold}
.b a{font-size:12pt;color:#00c;font-weight:bold}
#np,#nn,.nr,#logo span,.ch{cursor:pointer;cursor:hand}
.tas{padding:3px 3px 3px 5px}
.taf{padding:3px 3px 6px 5px}
.tam{padding:6px 3px 6px 5px}
.tal{padding:6px 3px 3px 5px}
.sl,.r{font-weight:normal;margin:0;display:inline}
.sl{font-size:84%}
.r{font-size:1em}
.e{margin:.75em 0}
.mblink:visited{color:#00c}
.sm{display:block;margin:0;margin-left:40px}
.bl{display:none}
.fl2,.fl2:link,.fl2:visited{color:#77c}
.fl2:active{color:red}
#navbar div,#logo span{background:url(/images/nav_logo.png) no-repeat;overflow:hidden;height:26px}
#navbar .nr{background-position:-60px 0;width:16px}
#navbar #np{width:44px}
#navbar #nf{background-position:-26px 0;width:18px}
#navbar #nc{background-position:-44px 0;width:16px}
#navbar #nn{background-position:-76px 0;width:66px;margin-right:34px}
#navbar #nl{background-position:-76px 0;width:46px}
#logo{display:block;width:150px;height:52px;position:relative;overflow:hidden;margin:15px 0 12px}
#logo span{background-position:0 -26px;position:absolute;top:0;left:0;width:100%;height:100%}
body,td,div,.p,a{font-family:arial,sans-serif}
.g{margin:1em 0}
#sd{font-size:113%;font-weight:bold}
#ap{font-size:64%}
--></style>
<script><!--
(function(){window.google={kEI:"qUczRreCPJDK0QSEuK2XBA",kEXPI:"17259,17315",kHL:"en"};})();(function(){window.rwt=function(b,d,f,j,k,g,l){var a=window.encodeURIComponent?encodeURIComponent:escape,h="",i="",c=b.href.split("#"),e="";if(d){h="&oi="+a(d)}if(f){i="&cad="+a(f)}if(g){e="&usg="+g}b.href="/url?sa=t"+h+i+"&ct="+a(j)+"&cd="+a(k)+"&url="+a(c[0]).replace(/\+/g,"%2B")+"&ei=qUczRreCPJDK0QSEuK2XBA"+e+l+(c[1]?"#"+c[1]:"");b.onmousedown_="";return true};})();//-->
</script><script defer>
<!--
function ss(id){window.status='';return true;}

function ga(o,e) {if (document.getElementById) {var a = o.id.substring(1); var p = "", r = "", t, f, h;var g = e.target;if (g) { t = g.id;f = g.parentNode;if (f) {p = f.id;h = f.parentNode;if (h)r = h.id;}} else {h = e.srcElement;f = h.parentNode;if (f)p = f.id;t = h.id;}if (t==a || p==a || r==a)return true;top.location.href=document.getElementById(a).href}}
//-->
</script>
</head><body bgcolor=#ffffff onload_="window.ManyBox && ManyBox.init();window.MultiHistory && MultiHistory.initialize();" topmargin=3 marginheight=3><noscript></noscript><div align=right id=guser style="font-size:84%;padding-bottom:4px" width=100%><nobr><b>loes.mertens@gmail.com</b>&nbsp;|&nbsp;<a href="https://www.google.com/accounts/ManageAccount">My Account</a>&nbsp;|&nbsp;<a href="/accounts/ClearSID?continue=http://www.google.com/accounts/Logout%3Fcontinue%3D">http://www.google.be/search%253Fhl%253Den%2526q%253Dkeyword%2526btnG%253DGoogle%252BSearch%2526meta%253D">Sign out</a></nobr></div><table border=0 cellpadding=0 cellspacing=0 width=100%><tr><form name=gs method=GET action=/search><td valign=top><a id=logo href="http://www.google.be/webhp?hl=en" title="Go to Google Home">Google<span></span></a></td><td>&nbsp;&nbsp;</td><td valign=top width=100% style="padding-top:0px"><table cellpadding=0 cellspacing=0 border=0><tr><td height=14 valign=bottom><img align=right alt="" height=1 width=1><script defer><!--
function qs(el){if(window.RegExp&&window.encodeURIComponent){var ue=el.href,qe=encodeURIComponent(document.gs.q.value);if(ue.indexOf("q=")!=-1){el.href=ue.replace(new RegExp("q=[^&$]*"),"q="+qe);}else{el.href=ue+"&q="+qe;}}return 1;}
//-->
</script><table border=0 cellspacing=0 cellpadding=4><tr><td nowrap><font size=-1><b>Web</b>&nbsp;&nbsp;&nbsp;&nbsp;<a class=q href="http://images.google.be/images?hl=en&q=keyword&btnG=Google+Search&ie=UTF-8&oe=UTF-8&um=1&sa=N&tab=wi" onclick_="return qs(this)">Images</a>&nbsp;&nbsp;&nbsp;&nbsp;<a class=q href="http://groups.google.be/groups?hl=en&q=keyword&btnG=Google+Search&ie=UTF-8&oe=UTF-8&um=1&sa=N&tab=wg" onclick_="return qs(this)">Groups</a>&nbsp;&nbsp;&nbsp;&nbsp;<a class=q href="http://news.google.be/news?hl=en&q=keyword&btnG=Google+Search&ie=UTF-8&oe=UTF-8&um=1&sa=N&tab=wn" onclick_="return qs(this)">News</a>&nbsp;&nbsp;&nbsp;&nbsp;<b><a href="/intl/en/options/" class=q>more&nbsp;&raquo;</a></b></font></td></tr></table></td></tr><tr><td><table border=0 cellpadding=0 cellspacing=0><tr><td nowrap><input type=hidden name=hl value="en"><input type=text name=q size=41 maxlength=2048 value="keyword" title="Search"><font size=-1> <input type=submit name="btnG" value="Search"><span id=hf></span></font></td><td nowrap><span id=ap>&nbsp;&nbsp;<a href=/advanced_search?q=keyword&hl=en>Advanced Search</a><br>&nbsp;&nbsp;<a href=/preferences?q=keyword&hl=en>Preferences</a></span></td></tr></table></td></tr></table><table cellpadding=0 cellspacing=0 border=0><tr><td><font size=-1> Search: <input id=all type=radio name=meta value="" checked><label for=all> the web </label><input id=cty type=radio name=meta value="cr=countryBE"><label for=cty> pages from Belgium </label> </font></td></tr><tr><td height=7><img width=1 height=1 alt=""></td></tr></table></td></form></tr></table><script src="/extern_js/f/CgJlbhICYmUYBw/ErQnJTrFThw.js"></script><table cellspacing=0 cellpadding=0 border=0 width=100% style="margin-top:-1.23em"><tr><td align=right><font size=-1><font color=red>New!</font> <a href=/history?ct=tsr&amp;op=tsr&amp;hl=en>View and manage your web history</a></font></td></tr></table><table border=0 cellpadding=0 cellspacing=0 width=100% class="t bt"><tr><td nowrap><span id=sd>&nbsp;Web</span>&nbsp;</td><td align=right nowrap><font size=-1>Results <b>1</b> - <b>10</b> of about <b>428,000,000</b> for <b>keyword </b>[<a href="/url?sa=X&amp;oi=dict&amp;q=http://www.answers.com/keyword%26r%3D67&amp;usg=AFrqEzeMq0eo-SsqpS0zMjKPs7L_zhgFKg" title="Look up definition of keyword">definition</a>]<b></b>. (<b>0.09</b> seconds)&nbsp;</font></td></tr></table><table cellspacing=0 cellpadding=0 width=25% align=right id=mbEnd bgcolor=#ffffff border=0 class=ra><tr><td colspan=4><font size=-1>&nbsp;</font></td></tr><tr><td rowspan=5 >&nbsp;&nbsp;</td><td width=1 bgcolor=#c9d7f1 rowspan=5><img width=1 height=1 alt=""></td><td rowspan=5 >&nbsp;&nbsp;</td><td height=25 align=center><h2 class="sl f">Sponsored Links</h2></td></tr><tr height=7><td><img width=1 height=1 alt=""></td></tr><tr><td nowrap onmouseover_="return ss()"><font size=-1> <font size=+0><a id=an1 href=/url?sa=L&ai=BsMWQqkczRquGAY_e0ATWmcjgA5Gtug2Rq8GzAq3nzgXA_BUQARgBKAY4AFC8tLSIBWC5-MWA3AGYAYaIAcgBAdkDu8Aq9HGt2IA&num=1&q=http://www.keyworddiscovery.com/%3Fid%3D70531&usg=AFrqEzcDLvMo7j5th_Ppdn74fC_ckQxwGQ><b>Keyword</b> Research Tool</a></font><br>12 Months of <b>Keyword</b> Seasonal Data,<br>Misspellings, Popular, Free Trial<br><span class=a>www.<b>keyword</b>discovery.com</span><br> <br><font size=+0><a id=an2 href=/url?sa=L&ai=BM1g2qkczRquGAY_e0ATWmcjgA4DcuB2E-4KKAq3nzgWw1ecKEAIYAigGOABQ9eXxwQVgufjFgNwByAEBqQKxyim2pD1aPtkDu8Aq9HGt2IA&num=2&q=http://www.affiliatesempire.com/keywordelite.html&usg=AFrqEzfS8PNK4AJ6guy6YhgC1f3fVRejCw><b>Keyword</b> Research Tool</a></font><br>Generate Massive Keywords &amp; Find<br>Hidden Niches for $176. Check Out!<br><span class=a>www.affiliatesempire.com</span><br> <br><font size=+0><a id=an3 href=/url?sa=L&ai=B9ujjqkczRquGAY_e0ATWmcjgA46Pwxmwqei-Aa3nzgXA_BUQAxgDKAY4AFDIntmwAWC5-MWA3AHIAQGAAgHZA7vAKvRxrdiA&num=3&q=http://www.blazingtraffic.com&usg=AFrqEzcqFKAVboT72nMM0guNSnyFZKn3uA>10,000 Visitors $12.99</a></font><br>Real Guaranteed Website Traffic.<br>Real Time Tracking! None Better<br><span class=a>www.Blazingtraffic.com</span><br> <br><font size=+0><a id=an4 href=/url?sa=L&ai=BXmpaqkczRquGAY_e0ATWmcjgA-TxqiT8hvHjAq3nzgXwkwkQBBgEKAY4AFD_0uDVA2C5-MWA3AHIAQGpAss3RwuDusA-2QO7wCr0ca3YgA&num=4&q=http://pricekick.bryxen4.hop.clickbank.net/&usg=AFrqEzct2utE6K-VgSMVcA7qLbwcLGEBmw>Need tool for keywords?</a></font><br>Do you need amazing keywords<br>tool for your web or ads?Try it!<br><span class=a>www.<b>keyword</b>elite.com/</span><br> <br><font size=+0><a id=an5 href=/pagead/iclk?sa=l&ai=B5E4QqkczRquGAY_e0ATWmcjgA9TktifUv7DkA-jBztkToNEZEAUYBSgGOABQmpKC-vr_____AWC5-MWA3AGYAf2ZBqABwvid_gPIAQGAAgHZA7vAKvRxrdiA&num=5&adurl=http://www.PortalReview.com>Internet Marketers</a></font><br>Portal Feeder Open After 15 Months!<br>Website Tools + Blueprint Training.<br><span class=a>www.PortalReview.com</span><br> <br><font size=+0><a id=an6 href=/url?sa=L&ai=BbSOgqkczRquGAY_e0ATWmcjgA7L_hh-SwMqiA6XdwwvAmgwQBhgGKAY4AFCu7q7XAWC5-MWA3AGYAZKHAcgBAdkDu8Aq9HGt2IA&num=6&q=http://wesun.reliable1.hop.clickbank.net&usg=AFrqEzdxvjCTIx2VeaQKV9xUyb5lczYhUQ><b>KeyWord</b> Sex Tips?</a></font><br>I Found Hidden <b>KeyWord</b> Niches<br>in I5 Minutes That Earned $2,322.71<br><span class=a>www.TwoMinuteProfits.com</span><br> </font></td></tr><tr height=7><td><img width=1 height=1 alt=""></td></tr><tr><td height=25 align=center><font size=-1></font></td></tr></table><div id=res> <!--a--><div><div class=g><!--m--><h2 class=r><a href="http://www.keyword.com/" class=l><b>Keyword</b>.com Internet <b>Keyword</b>, Phone <b>Keyword</b>, and Bar Code <b>Keyword</b> <b>...</b></a></h2><table border=0 cellpadding=0 cellspacing=0><tr><td class=j><font size=-1>A free internet <b>keyword</b> service and multi-search engine that sends users directly to websites.<br><span class=a>www.<b>keyword</b>.com/ - 15k - </span><nobr><a class=fl href="http://66.102.9.104/search?q=cache:t-jUQweJhGIJ:www.keyword.com/+keyword&hl=en&ct=clnk&cd=1&gl=be">Cached</a> - <a class=fl href="/search?hl=en&q=related:www.keyword.com/">Similar pages</a><span class=bl> - <a class=fl2 href=# onclick_="return gnb._add(this, 'http://www.keyword.com/')">Note this</a></span></nobr></font><!--n--></td></tr></table></div> <div class=g><!--m--><h2 class=r><a href="http://en.wikipedia.org/wiki/Keyword" class=l><b>Keyword</b> - Wikipedia, the free encyclopedia</a></h2><table border=0 cellpadding=0 cellspacing=0><tr><td class=j><font size=-1><b>Keyword</b> is a word or concept with special significance. <b>...</b> <b>Keyword</b> (Internet search), a word used to find useful results in internet searches <b>...</b><br><span class=a>en.wikipedia.org/wiki/<b>Keyword</b> - 16k - </span><nobr><a class=fl href="http://66.102.9.104/search?q=cache:sw4Rg86SYh4J:en.wikipedia.org/wiki/Keyword+keyword&hl=en&ct=clnk&cd=2&gl=be">Cached</a> - <a class=fl href="/search?hl=en&q=related:en.wikipedia.org/wiki/Keyword">Similar pages</a><span class=bl> - <a class=fl2 href=# onclick_="return gnb._add(this, 'http://en.wikipedia.org/wiki/Keyword')">Note this</a></span></nobr></font><!--n--></td></tr></table></div> <div class=g style="margin-left:2.5em"><!--m--><h2 class=r><a href="http://en.wikipedia.org/wiki/Keyword_(Internet_search)" class=l><b>Keyword</b> (Internet search) - Wikipedia, the free encyclopedia</a></h2><table border=0 cellpadding=0 cellspacing=0><tr><td class=j><font size=-1>A <b>keyword</b> in an Internet search is one of the words used to find matching web pages. It was popularized during the early days of search engine development, <b>...</b><br><span class=a>en.wikipedia.org/wiki/<b>Keyword</b>_(Internet_search) - 16k - </span><nobr><a class=fl href="http://66.102.9.104/search?q=cache:htu7YK2OG1QJ:en.wikipedia.org/wiki/Keyword_(Internet_search)+keyword&hl=en&ct=clnk&cd=3&gl=be">Cached</a> - <a class=fl href="/search?hl=en&q=related:en.wikipedia.org/wiki/Keyword_(Internet_search)">Similar pages</a><span class=bl> - <a class=fl2 href=# onclick_="return gnb._add(this, 'http://en.wikipedia.org/wiki/Keyword_(Internet_search)')">Note this</a></span></nobr></font><!--n--></td></tr></table></div> <div class=g><!--m--><h2 class=r><a href="http://www.wordtracker.com/" class=l><b>Keyword</b> services for professional search engine optimization</a></h2><table border=0 cellpadding=0 cellspacing=0><tr><td class=j><font size=-1>Use Wordtracker to discover the best <b>keywords</b> for your website.<br><span class=a>www.wordtracker.com/ - 10k - </span><nobr><a class=fl href="http://66.102.9.104/search?q=cache:pB4PMVYSzbsJ:www.wordtracker.com/+keyword&hl=en&ct=clnk&cd=4&gl=be">Cached</a> - <a class=fl href="/search?hl=en&q=related:www.wordtracker.com/">Similar pages</a><span class=bl> - <a class=fl2 href=# onclick_="return gnb._add(this, 'http://www.wordtracker.com/')">Note this</a></span></nobr></font><!--n--></td></tr></table></div> <div class=g><!--m--><h2 class=r><a href="http://inventory.overture.com/" class=l><b>Keyword</b> Selector Tool</a></h2><table border=0 cellpadding=0 cellspacing=0><tr><td class=j><font size=-1><b>Keyword</b> Selector Tool. Not sure what search terms to bid on? Enter a term related to your site and we will show you:; Related searches that include your <b>...</b><br><span class=a>inventory.overture.com/ - 2k - 26 Apr 2007 - </span><nobr><a class=fl href="http://66.102.9.104/search?q=cache:LaCYskB8REUJ:inventory.overture.com/+keyword&hl=en&ct=clnk&cd=5&gl=be">Cached</a> - <a class=fl href="/search?hl=en&q=related:inventory.overture.com/">Similar pages</a><span class=bl> - <a class=fl2 href=# onclick_="return gnb._add(this, 'http://inventory.overture.com/')">Note this</a></span></nobr></font><!--n--></td></tr></table></div> <div class=g><!--m--><h2 class=r><a href="https://adwords.google.com/select/main?cmd=KeywordSandbox" class=l>Google Adwords <b>Keywords</b> Suggestions</a></h2><table border=0 cellpadding=0 cellspacing=0><tr><td class=j><font size=-1>Enter one <b>keyword</b> or phrase per line to see what related word searches your ad will show on.<br><span class=a>https://adwords.google.com/<wbr>select/main?cmd=<b>Keyword</b>Sandbox - </span><nobr><a class=fl href="/search?hl=en&q=related:https://adwords.google.com/select/main%3Fcmd%3DKeywordSandbox">Similar pages</a><span class=bl> - <a class=fl2 href=# onclick_="return gnb._add(this, 'https://adwords.google.com/select/main?cmd\x3dKeywordSandbox')">Note this</a></span></nobr></font><!--n--></td></tr></table></div> <div class=g style="margin-left:2.5em"><!--m--><h2 class=r><a href="https://adwords.google.com/select/KeywordSandbox" class=l>Google AdWords: <b>Keyword</b> Tool</a></h2><table border=0 cellpadding=0 cellspacing=0><tr><td class=j><font size=-1>Please note that the new <b>Keyword</b> Tool URL for external users is now KeywordToolExternal. You&#39;ll be able to take advantage of <b>Keyword</b> Tool features without <b>...</b><br><span class=a>https://adwords.google.com/select/<b>Keyword</b>Sandbox - 5k - </span><nobr><a class=fl href="http://66.102.9.104/search?q=cache:t8-Qw8p_ttgJ:https://adwords.google.com/select/KeywordSandbox+keyword&hl=en&ct=clnk&cd=7&gl=be">Cached</a>">https://adwords.google.com/select/KeywordSandbox+keyword&hl=en&ct=clnk&cd=7&gl=be">Cached</a>">http://66.102.9.104/search?q=cache:t8-Qw8p_ttgJ:">https://adwords.google.com/select/KeywordSandbox+keyword&hl=en&ct=clnk&cd=7&gl=be">Cached</a> - <a class=fl href="/search?hl=en&q=related:https://adwords.google.com/select/KeywordSandbox">Similar pages</a><span class=bl> - <a class=fl2 href=# onclick_="return gnb._add(this, 'https://adwords.google.com/select/KeywordSandbox')">Note this</a></span></nobr></font><!--n--></td></tr></table></div> <div class=g><!--m--><h2 class=r><a href="http://www.onestat.com/" class=l>OneStat.com - provider of web analytics, click fraud detection <b>...</b></a></h2><table border=0 cellpadding=0 cellspacing=0><tr><td class=j><font size=-1>They provide you detailed reports about your webposition, the position of your <b>keywords</b> in search engines, link popularity and pagerank trends. <b>...</b><br><span class=a>www.onestat.com/ - 28k - </span><nobr><a class=fl href="http://66.102.9.104/search?q=cache:thcgDrXtrKoJ:www.onestat.com/+keyword&hl=en&ct=clnk&cd=8&gl=be">Cached</a> - <a class=fl href="/search?hl=en&q=related:www.onestat.com/">Similar pages</a><span class=bl> - <a class=fl2 href=# onclick_="return gnb._add(this, 'http://www.onestat.com/')">Note this</a></span></nobr></font><!--n--></td></tr></table></div> <div class=g><!--m--><h2 class=r><a href="http://www.goodkeywords.com/" class=l>Good <b>Keywords</b>: Find the best <b>keywords</b> for your web pages.</a></h2><table border=0 cellpadding=0 cellspacing=0><tr><td class=j><font size=-1>Windows web page <b>keywords</b> building software. Available for free download.<br><span class=a>www.good<b>keyword</b>s.com/ - 12k - </span><nobr><a class=fl href="http://66.102.9.104/search?q=cache:5GmC-2Xx-2sJ:www.goodkeywords.com/+keyword&hl=en&ct=clnk&cd=9&gl=be">Cached</a> - <a class=fl href="/search?hl=en&q=related:www.goodkeywords.com/">Similar pages</a><span class=bl> - <a class=fl2 href=# onclick_="return gnb._add(this, 'http://www.goodkeywords.com/')">Note this</a></span></nobr></font><!--n--></td></tr></table></div> <div class=g><!--m--><h2 class=r><a href="http://www.mozilla.org/docs/end-user/keywords.html" class=l>Mozilla Custom <b>Keywords</b></a></h2><table border=0 cellpadding=0 cellspacing=0><tr><td class=j><font size=-1>Mozilla Custom <b>Keywords</b> ROCK! Not just for making shorthand for bookmarks but also for searches and queries. Simple <b>keywords</b> allow you to type a short <b>...</b><br><span class=a>www.mozilla.org/docs/end-user/<b>keyword</b>s.html - 9k - </span><nobr><a class=fl href="http://66.102.9.104/search?q=cache:db8deTfBdyoJ:www.mozilla.org/docs/end-user/keywords.html+keyword&hl=en&ct=clnk&cd=10&gl=be">Cached</a> - <a class=fl href="/search?hl=en&q=related:www.mozilla.org/docs/end-user/keywords.html">Similar pages</a><span class=bl> - <a class=fl2 href=# onclick_="return gnb._add(this, 'http://www.mozilla.org/docs/end-user/keywords.html')">Note this</a></span></nobr></font><!--n--></td></tr></table></div> <!--z--></div><br clear=all><div id=navbar class=n><table border=0 cellpadding=0 width=1% cellspacing=0 align=center><tr align=center style=text-align:center valign=top><td valign=bottom nowrap><font size=-1>Result&nbsp;Page:&nbsp;</font><td nowrap><div id=nf></div><td nowrap><div id=nc></div><span class=i>1</span><td nowrap><a href=/search?q=keyword&hl=en&start=10&sa=N><div class=nr></div>2</a><td nowrap><a href=/search?q=keyword&hl=en&start=20&sa=N><div class=nr></div>3</a><td nowrap><a href=/search?q=keyword&hl=en&start=30&sa=N><div class=nr></div>4</a><td nowrap><a href=/search?q=keyword&hl=en&start=40&sa=N><div class=nr></div>5</a><td nowrap><a href=/search?q=keyword&hl=en&start=50&sa=N><div class=nr></div>6</a><td nowrap><a href=/search?q=keyword&hl=en&start=60&sa=N><div class=nr></div>7</a><td nowrap><a href=/search?q=keyword&hl=en&start=70&sa=N><div class=nr></div>8</a><td nowrap><a href=/search?q=keyword&hl=en&start=80&sa=N><div class=nr></div>9</a><td nowrap><a href=/search?q=keyword&hl=en&start=90&sa=N><div class=nr></div>10</a><td nowrap class=b><a href=/search?q=keyword&hl=en&start=10&sa=N><div id=nn></div>Next</a></table></div></div><center>

<br clear=all><br><table border=0 cellpadding=0 cellspacing=0 width=100% class="t bb bt"><tr><td align=center>&nbsp;<br><table border=0 cellpadding=0 cellspacing=0 align=center><form method=GET action=/search><tr><td nowrap>
<font size=-1><input type=text name=q size=31 maxlength=2048 value="keyword" title="Search"> <input type=submit name=btnG value="Search"><input type=hidden name=hl value="en"></font></td></tr></form></table><br><font size=-1><a href=/swr?q=keyword&hl=en&swrnum=428000000>Search&nbsp;within&nbsp;results</a> | <a href=/language_tools?q=keyword&hl=en>Language Tools</a> | <a href="/intl/en/help.html">Search&nbsp;Tips</a> | <a href="/quality_form?q=keyword&amp;hl=en" target=_blank>Dissatisfied? Help us improve</a></font><br><br></td></tr></table></center><center><p><hr class=z><table border=0 cellpadding=2 cellspacing=0 width=100%><tr><td align=center><font size=-1><a href="/">Google&nbsp;Home</a> - <a href="/intl/en/ads/">Advertising&nbsp;Programs</a> - <a href="/services/">Business Solutions</a> - <a href="/intl/en/about.html">About Google</a></font></td></tr></table><br><font size=-1 class=p>&copy;2007 Google</font></center></body></html>

Posttop
Alberto MassariSubject: h2 element is there but XQuery doesn't return h2
Author: Alberto Massari
Date: 30 Apr 2007 09:29 AM
Hi Loes,
you should double check if your JTidy step generates true XHTML instead of simply well-formed HTML; in this case, the h2 elements are placed in the XHTML namespace and you will need to change your query to contain a

declare namespace xhtml = "http://www.w3.org/1999/xhtml";

for $d in //xhtml:h2 return $d

Hope this helps,
Alberto

 
Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.