Re: media attribute in xml-stylesheet
Hussein Shafie <[email protected]> Wed, 12 Jun 2024 10:48:53 +0200
| Newsgroups | gmane.editors.xxe.general |
|---|---|
| Message-ID | <[email protected]> |
On 6/12/24 10:13, Kevin Brubeck Unhammer wrote: > Hussein Shafie <[email protected]> čálii: >> On 6/11/24 14:27, Kevin Brubeck Unhammer wrote: >>> Is there a media attribute that *is* accepted by XmlMind? >> >> Yes, it is. Exact reference implemented by XXE: >> https://www.w3.org/1999/06/REC-xml-stylesheet-19990629/ >> >> However after reading the code, it seems that we have a couple of bugs >> related to the support of the "media" pseudo-attribute. Sorry for >> that! >> >>> If there is, one could do >>> <?xml-stylesheet title="My view" media="SOMETHING" >>> href="xxe.css" type="text/css"?> >>> <?xml-stylesheet title="Print" media="screen,tv,projection" href="print.css" type="text/css"?> >>> and have one css be used by XmlMind, and one by other applications. >> >> The above should work fine in next version of XXE. However it's too >> late to do that in XXE v10.8 as we should release this version in the >> next few days. > > I take it this means that the value(s) for @media which will be accepted > by XmlMind is still not decided on? > Not quite. For now, XXE accepts "xmlmind-xml-editor", "screen", "all", "print" (only when printing via the "File|Print" menu item). We don't see reasons to change these values (which should be documented and unfortunately are not). FYI, one of the bugs we have found is that media="screen" is accepted but not media="screen,tv,projection". -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support