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

Map profiling attributes set on DITA elements to equivalent HTML5 "data-" attributes #1739

Closed
raducoravu opened this issue Sep 9, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@raducoravu
Copy link
Member

commented Sep 9, 2014

Based on this discussion thread:

https://groups.yahoo.com/neo/groups/dita-users/conversations/topics/35727

The DITAVAL can specify for a profiling attribute a "passthrough" action.
Ideally when this is done, we could map the profiling attributes set on the DITA content to equivalent XHTML "data-" attributes. This would mean that after the XHTML is generated, users could use Javascript or CSS rules to show/hide parts of the output based for example on user roles.

@eerohele

This comment has been minimized.

Copy link
Member

commented Sep 9, 2014

Don't know if it matters, but note that @data attributes aren't valid XHTML.

@raducoravu

This comment has been minimized.

Copy link
Member Author

commented Sep 9, 2014

It's valid HTML 5, I'm not sure about whether it's valid XHTML 5. I'm not sure if we can talk about an XHTML 5 standard.

@jelovirt

This comment has been minimized.

Copy link
Member

commented Sep 9, 2014

The 2.0 code actually treats HTML5 as the default output, XHTML is generated from HTML5. We can strip @data attributes from XHTML output.

@jelovirt jelovirt self-assigned this Sep 9, 2014

jelovirt added a commit that referenced this issue Sep 9, 2014

@jelovirt jelovirt added this to the 2.0.M4 milestone Sep 9, 2014

@jelovirt jelovirt changed the title Map profiling attributes set on DITA elements to equivalent XHTML "data-" attributes Map profiling attributes set on DITA elements to equivalent HTML5 "data-" attributes Sep 9, 2014

@jelovirt jelovirt closed this Sep 9, 2014

infotexture added a commit to infotexture/dita-ot that referenced this issue Nov 17, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.