W3C home > Mailing lists > Public > www-xml-fragment-comments@w3.org > April 1999

Re: Last Call for the XML Fragment Interchange Rec

From: James Tauber <jtauber@jtauber.com>
Date: Wed, 14 Apr 1999 16:52:01 +0800
Message-Id: <37145731.EB6A90B4@jtauber.com>
To: Paul Grosso <pgrosso@arbortext.com>
Cc: www-xml-fragment-comments@w3.org
[I'm writing to your Paul because it's a general question that I'm
hoping you'll answer for me and to the fragment-comments alias (which I
guess includes you anyway) in case it is felt that the answer to these
questions could be made clearer in the spec. I apologise in advance,
though, if the spec does answer these questions and I just didn't look
hard enough, which is quite possible]

Paul,

Am I right in thinking that the context that one provides in the FCS is
dependent simply on the amount of context that one *needs* to properly
deal with the fragment body?

Say the original document was

<A>
 <B><C>...</C></B>
 <B><C>...</C></B>
 <B><C>...</C></B>
 <B><C>...</C></B>
 <B><C>...</C></B>
 <B><C>...</C></B>
 <B><C>...</C></B>
 <B><C>...</C></B>
 <B><C>...</C></B>
 <B><C>...</C></B>
</A>

and you wanted to have the 8th C as a fragment.

If you didn't care that the parent of B was the 8th sibling, you could
just put:

<A>
 <B>
  <f:fragbody ...>
 </B>
</A>

If you did care, you would put something like:

<A>
 <B/>
 <B/>
 <B/>
 <B/>
 <B/>
 <B/>
 <B/>
 <B>
  <f:fragbody ...>
 </B>
</A>

And if you cared that the parent of B was the 3rd last sibling (but not
that it was the 8th) you could put:

<A>
 <B>
  <f:fragbody ...>
 </B>
 <B/>
 <B/>
</A>

Is all this true?

Also, might one want to include in the FCS all elements with an ID
attribute to ensure uniqueness if the fragment is being edited?

For example, if I had

<A>
 <B><C ID="c1">...</C></B>
 <B><C ID="c2">...</C></B>
 <B><C ID="c3">...</C></B>
 <B><C ID="c4">...</C></B>
 <B><C ID="c5">...</C></B>
 <B><C ID="c6">...</C></B>
 <B><C ID="c7">...</C></B>
 <B><C ID="c8">...</C></B>
 <B><C ID="c9">...</C></B>
 <B><C ID="c10">...</C></B>
</A>

might I want to have the FCS:

<A>
 <B><C ID="c1"/></B>
 <B><C ID="c2"/></B>
 <B><C ID="c3"/></B>
 <B><C ID="c4"/></B>
 <B><C ID="c5"/></B>
 <B><C ID="c6"/></B>
 <B><C ID="c7"/></B>
 <B>
  <f:fragbody ...>
 </B>
 <B><C ID="c9"/></B>
 <B><C ID="c10"/></B>
</A>

if I cared about ID uniqueness and/or the fragbody could potentially
contain an IDREF.

Regards

James
Received on Wednesday, 14 April 1999 04:49:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:52:38 UTC