xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
RE: [XOM-interest] New XPath issue: what to do with non-nodes?
- From: "Watson, John" <JWatson AT satelliteinfo.co.uk>
- To: 'Michael Kay' <mike AT saxonica.com>, 'John Cowan' <jcowan AT reutershealth.com>, 'Elliotte Harold' <elharo AT metalab.unc.edu>
- Cc: xom-interest AT lists.ibiblio.org, Nils_Kilden-Pedersen AT Countrywide.Com
- Subject: RE: [XOM-interest] New XPath issue: what to do with non-nodes?
- Date: Thu, 13 Jan 2005 09:40:50 -0000
I couldn't agree more. My application is an interpreter that generates
XPath expressions and then applies them. I rely pretty much on the full set
of types that XPath expressions may return. If XOM restricts itself just to
node-sets, I'm afraid I'm much less inclined to use it.
-----Original Message-----
From: Michael Kay [mailto:mike AT saxonica.com]
Sent: 13 January 2005 09:05
To: 'John Cowan'; 'Elliotte Harold'
Cc: xom-interest AT lists.ibiblio.org; Nils_Kilden-Pedersen AT Countrywide.Com
Subject: RE: [XOM-interest] New XPath issue: what to do with non-nodes?
>
> Elliotte Harold scripsit:
>
> > What XPath 1.0 expressions might you use
> > in a Java program that do not return node-sets?
>
> I can't think of any.
I think you're assuming a scenario where users like to code in Java and only
use XPath as a last resort. There's another scenario where users hate coding
in Java (all those fiddly iterators) and like to use XPath as much as
possible. There's also a scenario where the Java application with embedded
XPath is machine-generated.
sum(*[@code=23]/@value)
lang('de')
count(../following-sibling::foo) = 0
Michael Kay
http://www.saxonica.com
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest
*************************************************************
Satellite Information Services Limited Registered Office:
17 Corsham Street London N1 6DR, Company No. 4243307
The information in this e-mail (which includes any files
transmitted with it) is confidential and is intended for the
addressee only. Unauthorised recipients are required to
maintain confidentiality. If you have received this e-mail
in error please notify the sender immediately, destroy any
copies and delete it from your computer system.
*************************************************************
-
Re: [XOM-interest] New XPath issue: what to do with non-nodes?
, (continued)
- Re: [XOM-interest] New XPath issue: what to do with non-nodes?, John Cowan, 01/13/2005
- Re: [XOM-interest] New XPath issue: what to do with non-nodes?, Wolfgang Hoschek, 01/13/2005
- RE: [XOM-interest] New XPath issue: what to do with non-nodes?, Michael Kay, 01/13/2005
- Re: [XOM-interest] New XPath issue: what to do with non-nodes?, Wolfgang Hoschek, 01/13/2005
- Re: [XOM-interest] New XPath issue: what to do with non-nodes?, Bradley S. Huffman, 01/17/2005
- Re: [XOM-interest] New XPath issue: what to do with non-nodes?, Michael Abato, 01/13/2005
- RE: [XOM-interest] New XPath issue: what to do with non-nodes?, Michael Kay, 01/13/2005
- Re: [XOM-interest] New XPath issue: what to do with non-nodes?, Elliotte Harold, 01/13/2005
Archive powered by MHonArc 2.6.24.