LISTSERV mailing list manager LISTSERV 16.5

Help for TEI-SOM Archives


TEI-SOM Archives

TEI-SOM Archives


TEI-SOM@LISTSERV.BROWN.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

TEI-SOM Home

TEI-SOM Home

TEI-SOM  July 2012

TEI-SOM July 2012

Subject:

Re: Use cases. What's next?

From:

Hugh Cayless <[log in to unmask]>

Reply-To:

TEI Stand-Off Markup, XLink, XPointer WG

Date:

Fri, 6 Jul 2012 08:29:44 -0400

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (48 lines)

On Jul 6, 2012, at 8:05AM, Martin Holmes wrote:

> This looks like an excellent start. I have one question about this bit:
> 
> "Instead of saying left() and right() return Points, it might be better to declare them as returning nothing, but instead setting a location pointer available to other functions."
> 
> Why do you say this? I don't really see in what context a location pointer could be set; this suggests either passing in an actual pointer (a parameter by reference) which would then be set to something, or having a global variable of some kind which could be set by the function, but I don't see how another XPointer function could reliably access either of these things except in a very language-specific manner.

It will have to be context-specific. My starting-point for this was XInclude. You can't Xinclude a Point, therefore either a bare left() or right() has to be illegal in the context of XInclude or we need to define them in a way that plainly makes them not useful in that context. Assume a pointer like:

range(left(foo),right(bar))

Any implementation will have to decide what to do with left() and right(). In the context of XInclude, this would mean something like "return a sequence of nodes containing the element with xml:id="foo", the element with xml:id="bar", and everything in between". In another context, it might mean "wrap this sequence in a <span class="hghlight"> tag". If we were using left(foo) to say "there's a line-break tag that should go here" on the other hand, we'd mean "insert <lb/> immediately before *[@id='foo']".

In any case, all of these pointer functions are going to have to be compiled into runnable code by their implementations, so all behaviors will be language-specific in the end. What I don't want to do is claim they return things that don't exist.
> 
> I think functions which return points need to return something specific. Perhaps we can define what that specific thing is? Could left() actually not return a point, but return the first character following the point; and right() return the last character before the point? This would have the virtue of being expressible in XPath; they would also allow for selection of a string-range within an attribute value.

What if *[@id='foo'] is immediately preceded by an element or an opening tag? What if *[@id='foo'] is the root element?

Best,
Hugh

> 
> Cheers,
> Martin
> 
> On 12-07-06 04:35 AM, Hugh Cayless wrote:
>> Hello everyone, I had essentially no time at all in June to do anything but mull this over, but I now have the beginnings of a document with notes toward requirements and a specification. You can view it at https://docs.google.com/document/d/1JsMA-gOGrevyY-crzHGiC7eZ8XdV5H_wFTlUGzrf20w/edit
>> 
>> It's open to comments only at the moment, but I'm happy to let anyone who wants to edit it.
>> 
>> Best,
>> Hugh
>> 
>> /**
>>  * Hugh A. Cayless, Ph.D.
>>  * NYU Digital Library Technology Services
>>  * http://papyri.info
>>  */
>> 

/**
 * Hugh A. Cayless, Ph.D.
 * NYU Digital Library Technology Services
 * http://papyri.info
 */

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

December 2013
September 2013
March 2013
September 2012
August 2012
July 2012
June 2012
May 2012
March 2012
February 2012
January 2012
December 2011
December 2005
November 2005
October 2005
June 2005
April 2005
January 2005
December 2004
October 2004
September 2004
August 2004
May 2004
April 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002

ATOM RSS1 RSS2



LISTSERV.BROWN.EDU

CataList Email List Search Powered by the LISTSERV Email List Manager