- From: Roland Gülle <roland@7val.com>
- Date: Wed, 18 Jul 2007 16:20:38 +0200
- To: public-mobileok-checker <public-mobileok-checker@w3.org>
The google page hat an empty namespace, so we get the result: ... <docContent> <html xmlns=""> ... With this structure, none of our //html:* xpath matches, because we use a namespace for the html doc: xmlns:html="http://www.w3.org/1999/xhtml" The first simple solution could be another check if: //docContent/html:html/html:body is available. But this is not the solution. A doc structure: <html xmlns:html="http://www.w3.org/1999/xhtml"> ... <body> <table> <tr> <td> <table xmlns=""> ... returns a valid nested table test (same with all other document xpath checks). Some possible solutions: * remove all namespaces from the document in the preprocessor or * check all xpath with local name or * define rules at the BP about namespaces (and check them in a checkertest) Cheers, Roland
Received on Wednesday, 18 July 2007 14:22:04 UTC