IssueRaiser

> I really do not see anything useful in having attributes That's because you chose examples that show attributes at their worst.

> I really do not see anything useful in having attributes That's because you chose examples that show attributes at their worst. Suppose that instead of a document with a single author you instead had a document to which many people contributed, and you wanted to mark it up to show who wrote which section. Using attributes (and identifiers) you would have, e.g. <author id=Bob>[info about Bob]<&#x2F;author> <author id=Alice>[info about Alice]<&#x2F;author> <span author=Bob>This part was written by Bob<&#x2F;span> <span author=Alice>and this part was written by Alice<&#x2F;span> <span author=Bob>and this part was written by Bob again.<&#x2F;span> This example also highlights why it is sometimes NECESSARY to use identifiers in order to produce the semantically correct structure. Suppose you put all the author information in-line as you suggest. The result would look something like this: <span><author><name>Bob<&#x2F;name>[info about Bob]<&#x2F;author>This part was written by Bob<&#x2F;span> <span><author><name>Alice<&#x2F;name>[info about Alice]<&#x2F;author>This part was written by Alice<&#x2F;span> <span><author><name>Bob<&#x2F;name>[info about Bob]<&#x2F;author>This part was written by Bob<&#x2F;span> Were the first and third parts written by the same person, or by two different people whose names both happen to be Bob? If you put everything in-line there is no way to express that two pieces of structure are intended to be EQ to each other.

Posted by lisper on May 16, 2015, 2:46 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.6,500 issues0 comments

hackernews (E-commerce)

> I really do not see anything useful in having attributes That's because you chose examples that show attributes at their worst.

lisperMay 16, 2015, 2:46 PM

> I really do not see anything useful in having attributes That's because you chose examples that show attributes at their worst. Suppose that instead of a document with a single author you instead had a document to which many people contributed, and you wanted to mark it up to show who wrote which section. Using attributes (and identifiers) you would have, e.g. <author id=Bob>[info about Bob]<&#x2F;author> <author id=Alice>[info about Alice]<&#x2F;author> <span author=Bob>This part was written by Bob<&#x2F;span> <span author=Alice>and this part was written by Alice<&#x2F;span> <span author=Bob>and this part was written by Bob again.<&#x2F;span> This example also highlights why it is sometimes NECESSARY to use identifiers in order to produce the semantically correct structure. Suppose you put all the author information in-line as you suggest. The result would look something like this: <span><author><name>Bob<&#x2F;name>[info about Bob]<&#x2F;author>This part was written by Bob<&#x2F;span> <span><author><name>Alice<&#x2F;name>[info about Alice]<&#x2F;author>This part was written by Alice<&#x2F;span> <span><author><name>Bob<&#x2F;name>[info about Bob]<&#x2F;author>This part was written by Bob<&#x2F;span> Were the first and third parts written by the same person, or by two different people whose names both happen to be Bob? If you put everything in-line there is no way to express that two pieces of structure are intended to be EQ to each other.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue