These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:20 pm Advanced search

semantic markup for anaphora?

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

semantic markup for anaphora?

Postby yecril71pl » Thu Jul 09, 2009 5:56 pm

Dear wizards of HTML,
I am going out of my way to mark up a (pure) XHTML document so that I can run queries against it. What I have is, among others, constructs like
Code: Select all
<b class="customer"
>community of <span class="location" >Vielikiev</span ></b >

And it can give me an answer for the query
Code: Select all
Select all projects where customer location is ?

containing the result 'Community of Vielikiev'.
So far so good. Here is the problematic plain text:
…similar projects for communities of Tluktj, Prityc and Viaezovna.

Here is where my little microformat fails. The requirements are:
  1. The plain text must not be changed.
  2. The query must return ‘Community of Prityc’ and not ‘Prityc’ alone.
  3. The markup must not contain invisible text.
I have come up with the following workaround:
Code: Select all
<b class="customer group" >communities of</b >
<b class="customer.location" >Tluktj</b >,
<b class="customer.location" >Prityc</b >
and <b class="customer.location" >Vioezovna</b >

Which is sort of workable (requires modifications to the Select algorithm).
Note that I cannot wrap the whole list with B for fear that the text list could require UL.
Now you can tell me how stupid I am :shock:
I also have a problem with anchors in this text; I guess it is not limited to HTML but a general hypertext problem. Namely, if I put an anchor around Viaezovna only, the anchor text will imply that the referenced document contains information about Vioezovna — but my intention is to provide information about the cooperation with the community of Vioezovna and not about Vioezovna itself. I have no idea how to address this.
yecril71pl
<h6>
 
Posts: 9
Joined: Thu Mar 13, 2008 7:34 pm
Location: Warsaw, Poland

Postby zcorpan » Thu Sep 17, 2009 8:01 am

Does microdata help solve this problem?
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Postby yecril71pl » Fri Sep 25, 2009 11:17 pm

:idea: I guess I could explain the link in the title of the anchor:

Code: Select all
<a title="Community of Vioezovna" >Vioezovna</a >


I do not know how I could use microdata here; AFAIK, microdata are not distributive.
yecril71pl
<h6>
 
Posts: 9
Joined: Thu Mar 13, 2008 7:34 pm
Location: Warsaw, Poland


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest