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:
- The plain text must not be changed.
- The query must return ‘Community of Prityc’ and not ‘Prityc’ alone.
- The markup must not contain invisible text.
- 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
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.