Menu

#647 data.enumerated != valItem/@ident

GREEN
open
None
3
2014-11-25
2014-02-25
Syd Bauman
No

The value of @ident of ﹤valItem﹥, which is for “here is a value that belongs in an enumerated list”, is defined as xsd:NCName (via data.name). The datatype data.enumerated, which is for “put a value from an enumerated list here”, is defined as rng:string (via data.text).

It’s not clear to me what they should be (I’m leaning towards data.word), but they should match.

Related

Bugs: #681

Discussion

  • Syd Bauman

    Syd Bauman - 2014-02-25
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -0,0 +1,3 @@
    +The value of @ident of ﹤valItem﹥, which is for “here is a value that belongs in an enumerated list”, is defined as xsd:NCName (via data.name). The datatype data.enumerated, which is for “put a value from an enumerated list here”, is defined as rng:string (via data.text).
    +
    +It’s not clear to me what they should be (I’m leaning towards data.word), but they should match.
    
    • assigned_to: Syd Bauman
    • Priority: 5(default) --> 3
     
  • Martin Holmes

    Martin Holmes - 2014-02-25

    Doesn't data.enumerated have to allow multiple tokens, and therefore have to permit whitespace?

     
  • Sebastian Rahtz

    Sebastian Rahtz - 2014-02-25

    no. you use data.enumerated inside a oneOrMore to allow a sequence of non-whitespace-containing tokens.

    SFAICR

     
  • Martin Holmes

    Martin Holmes - 2014-02-26

    You're right of course, In which case, I vote for data.name, then; I'd prefer that enumerated values be NCNames, so that it's safer to convert them to other X(HT)ML things such as tag and attribute names and class names.

     
  • Hugh A. Cayless

    Hugh A. Cayless - 2014-11-18
    • Group: AMBER --> GREEN
     
  • Hugh A. Cayless

    Hugh A. Cayless - 2014-11-18

    EM, FC, and HC agree this should be data.name.

     
  • Peter Stadler

    Peter Stadler - 2014-11-19

    That issue seems to be connected to [bugs:#681]. The discussion there tends to data.word …

     

    Related

    Bugs: #681

  • James Cummings

    James Cummings - 2014-11-19

    F2F at Raleigh agrees that this needs clarification, but more discussion.

     
  • Peter Stadler

    Peter Stadler - 2014-11-19

    One issue is that <valItem/> can also be used within <content> thus defining the content model of an element (e.g. <term>). In this case it might be rational to allow for whitespace in fixed terms.