jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andreas.hartm...@wyona.org>
Subject Re: namespaces
Date Wed, 16 Mar 2005 15:31:44 GMT
Tobias Strasser wrote:
> well: "/*[local-name()='hugo' and
> namespace-uri()='http://foo.bar.org']" is not a valid path :-)

What's wrong with it?

LocationPath -> AbsoluteLocationPath
AbsoluteLocationPath -> '/' RelativeLocationPath
RelativeLocationPath -> Step
Step -> AbbreviatedAxisSpecifier NodeTest '[' PredicateExpr ']'
NodeTest -> NameTest ("*")
PredicateExpr -> Expr
Expr -> AndExpr
AndExpr -> EqualityExpr 'and' EqualityExpr
EqualityExpr (1) -> PrimaryExpr (1) '=' Literal
EqualityExpr (2) -> PrimaryExpr (2) '=' Literal
PrimaryExpr (1) -> FunctionCall
PrimaryExpr (2) -> FunctionCall

It's not about the quotation marks, is it? :)

-- Andreas

> 
> 
> On Wed, 16 Mar 2005 14:34:36 +0100, Michael Wechner
> <michael.wechner@wyona.com> wrote:
> 
>>I tried to export an XML as follows:
>>
>>session.exportDocView("/*[local-name()='hugo' and
>>namespace-uri()='http://foo.bar.org']", ....)
>>
>>but receive an invalid path exception.
>>
>>Any idea what might be wrong?
>>
>>Or what other possibility is there to export stuff with namespaces used?
>>
>>Thanks
>>
>>Michi
>>
>>--
>>Michael Wechner
>>Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
>>http://www.wyona.com                      http://lenya.apache.org
>>michael.wechner@wyona.com                        michi@apache.org
>>
>>
> 
> 
> 


-- 
Andreas Hartmann
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
andreas.hartmann@wyona.com                     andreas@apache.org

Mime
View raw message