Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mamund opened this issue Sep 6, 2014 · 2 comments
Open
Labels

Comments

@mamund
Copy link
Member

mamund commented Sep 6, 2014

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
Copy link
Contributor

fosrias commented Sep 6, 2014

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
Copy link
Member Author

mamund commented Sep 6, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants