zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #06119
[Bug 944795] Re: XQDoc doesn't handle & in URLs
Marked the bug as invalid.
All special characters have to be replaced by their corresponding XHTML entities:
In the same way as you:
- replace < with < or <
- replace > with > or >
you also have to
- replace & with & or &
In other works the XHTML part you want to include in the XQDoc documentation of a module *have to be* VALID XHTML:
You were trying to add a piece of XHTML similar with this one:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<body>
<a href="http://www.niso.org/kst/reports/standards?step=2&gid=&project_key=7cc9b583cb5a62e8c15d3099e0bb46bbae9cf38a";>ANSI/NISO Z39.19-2005</a>
</body>
</html>
which is not valid (see http://validator.w3.org/check)
Instead you should have replaced the & with & or & meaning:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<body>
<a href="http://www.niso.org/kst/reports/standards?step=2&gid=&project_key=7cc9b583cb5a62e8c15d3099e0bb46bbae9cf38a";>ANSI/NISO Z39.19-2005</a>
</body>
</html>
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/944795
Title:
XQDoc doesn't handle & in URLs
Status in Zorba - The XQuery Processor:
Invalid
Bug description:
If one has a URL within XQDoc documentation that contains a &, e.g.:
: When using the WordNet implementation,
: Zorba supports all of the relationships (and their abbreviations)
: specified by
: <a href="http://www.niso.org/kst/reports/standards?step=2&gid=&project_key=7cc9b583cb5a62e8c15d3099e0bb46bbae9cf38a";>ANSI/NISO Z39.19-2005</a>.
the parser complains:
can not parse as XML for xqdoc: loader parsing error: EntityRef: expecting ';'
; raised at /Users/pjl/src/flwor/zorba/repo/feature-ft_module/zorba/src/compiler/parsetree/parsenode_print_xqdoc_visitor.cpp:417
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/944795/+subscriptions
References