OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

wsrp message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [wsrp] [errata #27] Define a constant namespace prefix?



Comment: #27. 6/19/03 (TC discussion of #21)
The biggest problem with namespacing is the lack of clarity once a token is indicated as needing namespacing. Email discussion led to 3 requirements for any solution:
1. Clarity of the item after indicating it needs to be namespaced
2. Ability to directly debug scripts containing namespaced items (functions and variables). Equivalent for CSS classes is also desirable.
3. Consumer only needs to execute a single parse on the markup to do all rewriting (URL and namespacing)

Proposed solution:
1. Change the base token to “wsrp_rewrite”
2. Define the following modifiers:
    a. "_" suffix = namespace prefix (to be replaced with a constant for all instances within the set of documents for the current markup for this portlet instance)
    b. "?" suffix = start of URL rewriting expression
    c. "/" prefix = end of URL rewriting expression

Document: Spec
Section: 10.2.1
Old Text: wsrp-rewrite (3 occurrences)
New Text: wsrp_rewrite

Document: Spec
Section: 10.2.1.8
Old Text: wsrp-rewrite (8 occurrences)
New Text: wsrp_rewrite

Document: Spec
Section: 10.2.3
Old Text: wsrp-rewrite (2 occurrences)
New Text: wsrp_rewrite

Document: Spec
Section: 10.3.1
Old Text: The Portlet uses the static, predefined method (section 10.2.1) to denote tokens that need a namespace prefix.
New Text: The Portlet has two methods of indicating that a token needs to be namespaced:
   1. Prefix the token with “wsrp_rewrite_”. The Consumer will locate such markers and replace them with a prefix that is unique to this instance of this portlet on the page. This prefix has been chosen such that the Consumer is able to do a single parse of the markup to both locate such markers and the URL rewrite expressions described in section 10.2.1. In addition, this prefix is legal for at least the JavaScript and VBScript scripting languages and CSS class names. This permits the independent testing of most generated markup fragments.
    2. The Portlet can also use the static, predefined method (section 10.2.1) to denote tokens that need a namespace prefix.

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]