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

RE: question for a friend

  • From: Richard Tobin <richard@c...>
  • To: xml-dev@i...
  • Date: Fri, 11 Jun 1999 15:18:54 +0100 (BST)

RE: question for a friend
> But yes, there are
> situations where you want to impose multiple hierarchic structures over the
> same linear data. An obvious one is logical structure vs layout structure
> (e.g. sections and pages) another is logical structure vs change history and
> authorship. 

> I'm only aware of two answers:

Another solution, for some purposes, is to have two documents, one for
each hierarchy.  Of course, you don't want to to duplicate the data
itself.  We avoid this by using "standoff markup", which we implement
with XLinks (we have our own software to perform the transclusion
process).

The context we use this in is markup of linguistic corpora, and we
often have an ID on every word.  For the Shakespeare example it might
be something like this:

fragment of base file (othello.xml):

<w id="w20">charged</w>
<w id="w21">withal</w>
<punct id="p5">,</punct>
<w id="w22">I</w>
<w id="w23">won</w>
<w id="w24">his</w>
<w id="w25">daughter</w>
<punct id="p6">.</punct>
<w id="w26">A</w>
<w id="w27">maiden</w>
<w id="w28">never</w>
<w id="w29">bold</w>
<punct id="p7">;</punct>
<w id="w30">Of</w>
<w id="w31">spirit</w>

fragment of speech file:

<!ENTITY o SYSTEM "othello.xml">
<!ATTLIST speech 
          href      CDATA    #IMPLIED
          xml:link  CDATA    #FIXED "simple"
          show      CDATA    #FIXED "embed"
          actuate   CDATA    #FIXED "auto">

<speech id="s5" href="&o;#id(w5)..id(p6)/>
<speech id="s6" href="&o;#id(w26)..id(p9)/>

fragment of line file:

<line id="l10" href="&o;#id(w22)..id(p7)/>

-- Richard

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto: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.