W3C home > Mailing lists > Public > www-international@w3.org > January to March 2013

Re: How is parsing element and attribute names a string matching problem?

From: Phillips, Addison <addison@lab126.com>
Date: Sun, 27 Jan 2013 10:11:48 -0800
To: "Costello, Roger L." <costello@mitre.org>
CC: "www-international@w3.org" <www-international@w3.org>
Message-ID: <4rjlukw1ai8i62ondubjpcqx.1359310308504@email.android.com>
When you parse a document, in addition to finding the various tokens (the "breaking into pieces" part), you must also match the tokens to element or attribute names defined in the markup language in order to tell if the document is valid or to form the document's structure (e.g. the DOM). Normalization affects the tokenization part (combing marks can, for example, interact with the angle brackets and such) as well as the matching part... which is what makes it a string matching problem.

Addison Phillips
Globalization Architect (Lab126)
Chair (W3C I18N WG)

Sent from my Kindle Fire HD

"Costello, Roger L." <costello@mitre.org> wrote:

Hi Folks,

In section 3.1.1 [1] of the document,

    Character Model for the World Wide Web 1.0: Normalization

it says:

    Examples of string matching abound: parsing
    element and attribute names in Web documents ...

How is parsing element and attribute names a string matching problem?

When I think of "parsing" I think of breaking up a string into parts: here's a start tag, here's content, here's an end tag. I don't see it as a string matching problem. Would you explain how parsing element and attribute names is a string matching problem please?


[1] http://www.w3.org/TR/charmod-norm/#sec-WhyNormalization

Received on Sunday, 27 January 2013 18:12:18 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:34 UTC