Hi Anhad, It's been a while since I looked at those examples, but I suspect the easiest approach would be to move the <img> tag outside of the <div> in the example, and use CSS as you suggested to prevent it from being displayed.
Cheers, NRY On Sat, Apr 13, 2013 at 5:38 PM, Anhad Jai Singh <[email protected]> wrote: > Hi, > > During a recent discussion with Dan about using ccREL to display licensing > information on a page we found ourselves in a bit of a quandary. > > I want to embed the licensing information for media in a page and associate > licensing information to a specific file/piece of media on the page, but do > not want this information to be part of the visible HTML. > > <div about="CC_image.png" xmlns:dct="http://purl.org/dc/terms/" > xmlns:cc="http://creativecommons.org/ns#"> <img src="CC_image.png" > height="200px" /> <br /> This image, entitled <span > property="dct:title">Sharing Creative Works</span>, by <a > href="http://creativecommons.org/" property="cc:attributionName" > rel="cc:attributionURL dct:creator">Creative Commons</a> is licensed under a > <a rel="license" href="http://creativecommons.org/licenses/by/3.0/"> > Creative Commons Attribution 3.0 Unported License</a>. </div> > > > > The example(above) from the ccREL by Example guide > (http://labs.creativecommons.org/2011/ccrel-guide/#Images) displays > licensing information explicitly on the page and if one were to hide the > parts of the text outside of the tags, then the license would be incomplete. > I was wondering if there was an alternate way to represent/associate the > licensing meta-data with the image in a invisible form. Something that is > present in the DOM of the page but is not visible to the user (This can be > used by other scripts, plugins etc running in the background). One obvious > way to do it would be to simply wrap the license text in another <div> tag > and edit the CSS properties of the page to hide the contents of the tag, but > I am hoping there is a better way to go about this. > > Is anyone aware of alternate representations or any solutions that would > work in such a scenario? > > -- > Regrads, > Anhad Jai Singh (:ffledgling) > > _______________________________________________ > cc-devel mailing list > [email protected] > http://lists.ibiblio.org/mailman/listinfo/cc-devel > _______________________________________________ cc-devel mailing list [email protected] http://lists.ibiblio.org/mailman/listinfo/cc-devel
