STC and XPath
Arnold Rots
arots at head.cfa.harvard.edu
Wed Jun 6 11:31:53 PDT 2007
I can look it up, of course, but I'm sure you know this off the top of
your head: why should STC not use elementFormDefault="unqualified"?
- Arnold
Matthew Graham wrote:
[ Charset ISO-8859-1 unsupported, converting... ]
> Ray Plante wrote:
> > Hi Matthew,
> >
> > On Mon, 4 Jun 2007, Matthew Graham wrote:
> >> Now I thought that the whole point of using
> >> elementFormDefault="unqualified" in the schema was that it allowed us
> >> to use namespace-unaware XPath statements - clearly I'm missing
> >> something.
> >
> > It requires that all imported schemas also use
> > elementFormDefault="unqualified". Since STC does not do this, it
> > doesn't work for the STC elements. If the voe schema does use it,
> > then this xpath should work:
> >
> > /voe:VOEvent/WhereWhen/ObsDataLocation/stc:ObservationLocation/stc:AstroCoords/stc:Position2D/stc:Value2/stc:C1
> >
> >
> > (which schema is ObsDataLocation in? I forget.)
> >
> > The VOResource records have the same issue. You can go sans prefix
> > until you get to the STC bits.
> >
> > hope this helps,
> > Ray
> >
> Hi Ray,
>
> ObsDataLocation is actually also in STC. Since there is no hope of
> getting STC to use elementFormDefault="unqualified" (even though it is
> all in one namespace now), we're going to have change the instructions
> we give out to people on how to parse VOEvents and make things a little
> more complicated.
>
> Cheers,
>
> Matthew
>
--------------------------------------------------------------------------
Arnold H. Rots Chandra X-ray Science Center
Smithsonian Astrophysical Observatory tel: +1 617 496 7701
60 Garden Street, MS 67 fax: +1 617 495 7356
Cambridge, MA 02138 arots at head.cfa.harvard.edu
USA http://hea-www.harvard.edu/~arots/
--------------------------------------------------------------------------
More information about the voevent
mailing list