This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1658 - [FS] editorial: 4.7.2 Other Direct Constructors
Summary: [FS] editorial: 4.7.2 Other Direct Constructors
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Formal Semantics 1.0 (show other bugs)
Version: Last Call drafts
Hardware: All All
: P2 minor
Target Milestone: ---
Assignee: Jerome Simeon
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-16 04:30 UTC by Michael Dyck
Modified: 2007-02-25 23:15 UTC (History)
0 users

See Also:


Attachments

Description Michael Dyck 2005-07-16 04:30:55 UTC
4.7.2 Other Direct Constructors

(PI and Comment)
"its character content is converted to a string as in attribute content."
    Then it's odd that there isn't an invocation of [[]]_AttributeContent.
    But really, you don't want it converted as in attribute content,
    because that would (e.g.) map '&' to '&' and '{{' to '{', neither
    of which are correct for PI or Comment content.

Norm / rule 1
Char* ?>" ]]_Expr
    Delete stray doublequote.

Norm / rule (1|2)
"processing-instruction NCName { Char* }"
"comment { Char* }"
    In general, Char* does not constitute a valid Expr, and even when it
    does, it doesn't denote what you want it to. Putting Char* within
    quotes would be a good start, but then you have to worry about quotes
    in the Char* that then need to be escaped. Maybe introduce a []-form
    to accomplish the conversion.

DErr
"for direct processing-instruction constructors."
    Append "or comment constructors."
Comment 1 Jerome Simeon 2006-04-17 03:24:34 UTC
Fixed as suggested. Added an auxiliary normalization rule to convert Char* into an appropriate string.
- Jerome
Comment 2 Michael Dyck 2006-11-02 06:21:55 UTC
re the auxiliary normalization rule...
[Char*]_Characters == fn:codepoints-to-string(Char*)
    As in Bug 1629 (4.7.1) and Bug 3896 (4.7.1.1), this doesn't work.
    Instead, just define []_Characters informally, e.g.
        "[]_Characters takes the character content of a PI or comment
        constructor and yields a corresponding StringLiteral."
Comment 3 Jerome Simeon 2007-01-16 17:56:31 UTC
Fixed as suggested.
- Jerome