xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: "Michael Kay" <mike AT saxonica.com>
- To: "'William Chu'" <willchu AT gmail.com>, <elharo AT metalab.unc.edu>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] unable to get xquery to work
- Date: Sat, 5 Apr 2008 16:00:00 +0800
>
> Thank you for the help! But when I try the following
>
> String xqueryScript = "/xhtml:html";
>
> on the page:
> String page = "<html>hi</html>";
>
>
> I get an exception:
>
>
> java.lang.RuntimeException: nux.xom.xquery.XQueryException:
> net.sf.saxon.trans.StaticError: XQuery static error in #/xhtml:html#:
> Prefix xhtml has not been declared
The error message means exactly what it says. So declare the namespace:
declare namespace xhtml="...."; /xhtml:html
Michael Kay
http://www.saxonica.com/
-
[XOM-interest] unable to get xquery to work,
William Chu, 04/04/2008
-
Re: [XOM-interest] unable to get xquery to work,
Elliotte Harold, 04/04/2008
-
Re: [XOM-interest] unable to get xquery to work,
William Chu, 04/04/2008
- Re: [XOM-interest] unable to get xquery to work, Tatu Saloranta, 04/05/2008
- Re: [XOM-interest] unable to get xquery to work, Michael Kay, 04/05/2008
-
Re: [XOM-interest] unable to get xquery to work,
William Chu, 04/04/2008
-
Re: [XOM-interest] unable to get xquery to work,
Elliotte Harold, 04/04/2008
Archive powered by MHonArc 2.6.24.