Bugs item #1511195, was opened at 2006-06-23 11:40
Message generated for change (Comment added) made by sjoerd
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1511195&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PF general
Group: Pathfinder CVS Head
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Jan Flokstra (jflokstra)
Assigned to: Jan Flokstra (jflokstra)
Summary: DOCtype and/or xmlns causes empty path expr. result

Initial Comment:
We encountered a problem with path expressions on an
xhtml file with a DOCtype definition and xmlns
attributes inside <html> tags. The simplified xhtml
file is:

================ tiny_xhtml.xml======================
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.or
g/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<example1>
<html xmlns="http://www.w3.org/1999/xhtml";
xml:lang="en" lang="en">
<head>
<title>SIGIR'07 - Amsterdam</title>
<link rel="stylesheet" href="style.css" type="text/css"
media="all" />
<link rel="shortcut icon" href="images/sigir07.ico"
type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1" />
</head>
<body class="sigirViewPage"><div class="fullPage">
<div class="sigirMiddleContainer"><div
class="sigirLeftBar">
<div class="sigirLeftBarContents">
<strong><a class="sigirLink"
href="http://www.sigir2007.org";>SIGIR'07 Home</a></
strong>
</div></div></div></div></body></html>
</example1>
=========================================================

When we do the query:

fn:doc("tiny_xhtml.xml")//html

The result is empty. When we remove the DOCtype
definition and all attributes from the <html> tags the
query executes correct. Anybody any idea?

----------------------------------------------------------------------

>Comment By: Sjoerd Mullender (sjoerd)
Date: 2007-02-19 16:23

Message:
Logged In: YES 
user_id=43607
Originator: NO

Test added.

----------------------------------------------------------------------

Comment By: Stefan Manegold (stmane)
Date: 2006-12-02 18:40

Message:
Logged In: YES 
user_id=572415
Originator: NO

Re-opened, as no test has been provided, yet.

User (submitter) and/or developer (assignee),
please supply a respective test,
or explain why a test is not required/possible.


----------------------------------------------------------------------

Comment By: Jan Flokstra (jflokstra)
Date: 2006-06-23 12:07

Message:
Logged In: YES 
user_id=1054297

Teggy, thanks this worked. We were not 100% sure if it was
bug or a feature:-)We now know it is a feature.
I will close the bug immediately.

----------------------------------------------------------------------

Comment By: Torsten Grust (teggy)
Date: 2006-06-23 11:49

Message:
Logged In: YES 
user_id=642632

Hi,

 did you try ro run the query

   fn:doc("tiny_xhtml.xml")//*:html

against the document?  (Note: the 'html' element carries a
(default) namespace.)

Cheers,
   --Torsten


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1511195&group_id=56967

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to