Skip to content

new xtype="strings" #66

@mbtaylor

Description

@mbtaylor

Similar but not identical to the wontfix issues #12 and #13, an xtype that can robustly represent a 1-d array of variable-length strings, which is not otherwise possible in VOTable. This results from VOTable discussions with @msdemlei who wasn't keen on those earlier suggestions because of possible trouble with delimiters, but supports this one.

The suggestion here is to nominate a delimiter - say pipe '|' - with an escaping mechanism, say a backslash '\'. So:

  • strings are delimited with '|'
  • a literal '|' is represented by '\|'
  • a literal '\' is represented by '\\'

This would address the long-standing annoyance in VOTable that arrays of variable-length strings are not possible. It does not permit multidimensional string arrays (N-d char/unicodeChar arrays for N>2), but such things are very rarely seen.

It would be nice to have this in DALI 1.2, but if it's too late for that, in absence of major objections, I plan to prototype it soon in STIL anyway. I can write a PR if/when that's appropriate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions