[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: small questions

  • From: Richard Light <richard@l...>
  • To: Peter Murray-Rust <Peter@u...>
  • Date: Tue, 22 Apr 1997 13:41:51 +0100

small questions
In message <5878@u...>, Peter Murray-Rust
<Peter@u...> writes
>I asked a similar question some time ago but none of the gurus replied.
>My interpretation of the TEI synatx (and I don't think it's clear in
the draft)
>is that a sequence like:
>       FOO(1,BAR1)(2,BAR2)(3,BAR3)
>is identical to the (meaningful) sequence
>       FOO(1,BAR1)FOO(2,BAR2)FOO(3,BAR3)
>and the operator is implicit in the shorter form.  JUMBO would
presently
>expand your query to:
>       CHILD(2,article)CHILD(3,issue)CHILD(4,year)
>which would fail for your document.  A typical query for me would be
>       CHILD(1,YEAR)(2,ISSUE)(1,ARTICLE)
>which would be equivalent to 
>       ID(FOO)
>
>If you want ALL of something, you have to write ALL (the spec is clear
>on that :-)
>
>*** TEI experts/ERB *** please shine some light on this :-) *********

I'm not claiming guru status, but I think I can help with this one (if
only because I've got the Big Green TEI Book which contains more
examples!).

You may find it non-intuitive, but the draft does state clearly that the
value of CHILD is "a _series_ of steps", where each step is a bracketed
expression.  Thus there is no need to 'expand':

        CHILD(2 article) (3 issue) (4 year)
to
        CHILD(2 article)CHILD(3 issue)CHILD(4 year)

as it already has this meaning.  This is in line with the general aim of
the TEI extended pointer mechanism to be as concise as possible.  (Note
also that there are no commas between the numbers and the element
names.)

(Incidentally, it also says that the steps are "separated by white
space", but there is nothing in the XML draft syntax, nor in the TEI
source from which it was copied, which enforces this.  Is this an issue,
either for TEI or for XML?)

Richard Light
SGML and Museum Information Consultancy
richard@l...
3 Midfields Walk 
Burgess Hill
West Sussex RH15 8JA
U.K.
tel. (44) 1444 232067

xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo@i... the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.