From: SourceForge.net <no...@so...> - 2005-02-02 07:58:31
|
Feature Requests item #1097055, was opened at 2005-01-06 02:06 Message generated for change (Comment added) made by bobstayton You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373750&aid=1097055&group_id=21935 Category: DocBook XSL Group: HTML Status: Open Resolution: None Priority: 5 Submitted By: Pabs (pabs3) Assigned to: Robert Stayton (bobstayton) Summary: optionally allow mediaobject to output multiple html objects Initial Comment: According to "DocBook: The Definitive Guide" mediaobject should only ouput one imageobject/textobject. I would really like to be able to use mediaobject in a non-standard way by having the ability to set a parameter in my customisation layer, which, when turned on, would produce nested object tags, allowing the browser to select the correct piece of media based on the image types the browser can handle and the availability of plugins etc. I'd like this so that I can give SVG to users who can use it and pre-rendered backup PNG files to those who cannot. The lack of this option really makes using SVG in docbook an impossible dream. ---------------------------------------------------------------------- >Comment By: Robert Stayton (bobstayton) Date: 2005-02-01 23:58 Message: Logged In: YES user_id=193218 Which spec are you referring to? object elements can be nested in HTML 4.0 and XHTML 1.0. ---------------------------------------------------------------------- Comment By: Pabs (pabs3) Date: 2005-02-01 22:53 Message: Logged In: YES user_id=35028 Re nesting order, I think the order they occur in the docbook source would be enough. Re your proposal, Yeah, that sounds good. The docs should have a big fat warning saying "THIS DOES NOT CONFORM TO THE SPEC" though, or even a warning during the xslt transform process. Personally, I think that the spec should have had a more sane way of doing things, but anyway. ---------------------------------------------------------------------- Comment By: Robert Stayton (bobstayton) Date: 2005-02-01 09:59 Message: Logged In: YES user_id=193218 This looks pretty useful. There is no way of indicating in mediaobject markup what order the objects should be nested, so I don't think a general solution is likely. But I think a solution that is specific to SVG would be possible. How about this: If a new parameter named svg.nested.objects is set to 1 (default is zero), then an object hierarchy is output instead of just one <img> element. The outer object is the svg file, the first nested one is the next imageobject found, and the last is a textobject if it is found. ---------------------------------------------------------------------- Comment By: Pabs (pabs3) Date: 2005-02-01 07:53 Message: Logged In: YES user_id=35028 An example from the w3c HTML spec: <OBJECT title="The Earth as seen from space" classid="http://www.observer.mars/TheEarth.py"> <!-- Else, try the MPEG video --> <OBJECT data="TheEarth.mpeg" type="application/mpeg"> <!-- Else, try the GIF image --> <OBJECT data="TheEarth.gif" type="image/gif"> <!-- Else render the text --> The <STRONG>Earth</STRONG> as seen from space. </OBJECT> </OBJECT> </OBJECT> An svg example would look like this: <object data="foo.svg" type="image/svg+xml"> <object data="foo.png" type="png"> A pictorial description of the word "foo" </object> </object> ---------------------------------------------------------------------- Comment By: Robert Stayton (bobstayton) Date: 2005-02-01 01:20 Message: Logged In: YES user_id=193218 Can you provide an example HTML file that shows how this would work? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373750&aid=1097055&group_id=21935 |