alps-io / spec

ALPS Specification documents.
58 stars 13 forks source link

how do we indicate "rel" values mapping from ALPS to target media type? #55

Open mamund opened 9 years ago

mamund commented 9 years ago

right now the alps.id and alps.name are used to map to class in HTML. is there a way to map something to the rel attribute in HTML?

what about other formats (Cj, HAL, etc.)?

seems rel is important for many types and there is nothing in ALPS that lets us control that mapping directly, right?

fosrias commented 9 years ago

Well, in the case of and html, I would map to id or name (using the precedence of using name if it is defined on the descriptor) to the rel attribute and use class for forms as there is no concept of specifying a relation type. I always assume that these would map to the rel related parts of other media-types where you specify the [custom] link relation type.

mamund commented 9 years ago

the deaft ALSP to HTML Mapping says to apply alps.id and alps.name to HTML class property. for example forms and image tags don't support rel attributes.

also, for some media types, more than one value is allowed in the rel attribute (HTML, Cj, UBER, Siren). right now there is now way to indicate this in ALPS.

i think that's a weak spot.