Article View: comp.text.sgml
Article #519Re: A floating paired tag...
From: Brad Might
Date: Wed, 12 Jun 1991 13:19
Date: Wed, 12 Jun 1991 13:19
87 lines
2669 bytes
2669 bytes
In article <ENAG.91Jun9020802@gyda.ifi.uio.no> enag@ifi.uio.no (Erik Naggum) writes:
Path: halaus!hal.com!decwrl!spool.mu.edu!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!ugle.unit.no!nuug!ifi.uio.no!enag
From: enag@ifi.uio.no (Erik Naggum)
Reuben Wachtfogel <ruben@bcstec.boeing.com> writes:
|
| This may be very basic question but I really did
| try to find the answer independently and I'm stumped.
Thanks for this courtesy to other news readers.
| I wish to define a bracketing structure that could be inserted
| around any of:
| 1) blah
| 2) <b1><\b1>
| 3) <a1><\a1>
| 4) <a><\a>
If I may make some assumptions about what your problem is, here's my
thoughts.
I'm unclear on this point, myself, and would appreciate comments.
Given the document type declaration fragment
<!ELEMENT outer (#PCDATA|inner)*>
<!ELEMENT inner (#PCDATA)>
<!ATTLIST (outer,inner) language CDATA #CURRENT>
and the document instance fragment
<outer language=chinese>
ha che
<inner language=english>
good food
</inner>
kuluyuk
</outer>
what is the value of the language attribute when "kuluyuk" is seen?
It seems clear that if the fragment ends with
</inner>
<inner>
sweet-sour pork
</inner>
</outer>
the second inner will have the language attribute value "english".
In the above case, the attribute only applies to
the element that contains it. Therefore, in case (1) above,
kuluyuk is data within <outer language=chinese> and therefore
is treated as chinese.
A case that may occur that is:
<outer language=chinese>
ha che
<inner language=english>
good food
</inner>
kuluyuk
</outer>
<outer>
ha che
<inner>
kuluyuk
</inner>
</outer>
where the second kuluyuk is going to be looked upon as english
since the last value of attribute language in element inner
was english.
What about making language a NOTATION ?
lets keep these discussions in news (rather than
private email) as it seems very useful in understanding
problems and solutions.
brad
--
--
- standard disclaimers apply -
jbm@hal.com (Brad Might)
HaL Computer Systems - (512)794-2855
8920 Business Park Dr. Suite 300 Austin, Texas 78759
Technical Details
Message-ID:
<1991Jun12.131914.19072@hal.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!hal.com!halaus!jbmShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!hal.com!halaus!jbm From: jbm@hal.com (Brad Might) Newsgroups: comp.text.sgml Subject: Re: A floating paired tag... Message-ID: <1991Jun12.131914.19072@hal.com> Date: 12 Jun 91 13:19:14 GMT Organization: HaL Computer Systems, Inc. Lines: 87 In-Reply-To: jbm@infinity.hal.com's message of 10 Jun 91 07:53:37