
Hi, Not exactly a bug, but a glitch. When xml-stylesheet PIs are being used, "CSS Alternatives" appears not to work unless the CSS files are provided with title pseudo-attributes in their respective PIs. I guess this is not unreasonable, if you need a label for the pull-down menu. But the "Associate XSLT/CSS Stylesheet" dialog box doesn't offer a place to enter a title; it has to be done by hand. Maybe: (1) the dialog box should offer a field for a CSS title, and possibly (2) if one isn't given, the CSS Alternatives pull-down should fall back to the stylesheet href? What do you think? Cheers, Wendell ====================================================================== Wendell Piez mailto:wapiez@mulberrytech.com Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================

Hello, I think the dialog for associating a CSS stylesheet should offer a field for the title as in the dialog for setting a stylesheet in the document type in the preferences. As you noted the title is necessary for the combo box on the toolbar but it is also required by the specification for alternate stylesheets: http://www.w3.org/TR/REC-html40/present/styles.html#h-14.3.2 Also you have to set the rel pseudo-attribute to "alternate stylesheet". Regards, Sorin Wendell Piez wrote:
Hi,
Not exactly a bug, but a glitch. When xml-stylesheet PIs are being used, "CSS Alternatives" appears not to work unless the CSS files are provided with title pseudo-attributes in their respective PIs. I guess this is not unreasonable, if you need a label for the pull-down menu. But the "Associate XSLT/CSS Stylesheet" dialog box doesn't offer a place to enter a title; it has to be done by hand.
Maybe: (1) the dialog box should offer a field for a CSS title, and possibly (2) if one isn't given, the CSS Alternatives pull-down should fall back to the stylesheet href?
What do you think?
Cheers, Wendell

I am sorry, the correct link to the specification is: http://www.w3.org/TR/xml-stylesheet/ The correct name of the attribute is "alternate" with the values "yes" and "no". Regards, Sorin Sorin Ristache wrote:
Hello,
I think the dialog for associating a CSS stylesheet should offer a field for the title as in the dialog for setting a stylesheet in the document type in the preferences. As you noted the title is necessary for the combo box on the toolbar but it is also required by the specification for alternate stylesheets:
http://www.w3.org/TR/REC-html40/present/styles.html#h-14.3.2
Also you have to set the rel pseudo-attribute to "alternate stylesheet".
Regards, Sorin
Wendell Piez wrote:
Hi,
Not exactly a bug, but a glitch. When xml-stylesheet PIs are being used, "CSS Alternatives" appears not to work unless the CSS files are provided with title pseudo-attributes in their respective PIs. I guess this is not unreasonable, if you need a label for the pull-down menu. But the "Associate XSLT/CSS Stylesheet" dialog box doesn't offer a place to enter a title; it has to be done by hand.
Maybe: (1) the dialog box should offer a field for a CSS title, and possibly (2) if one isn't given, the CSS Alternatives pull-down should fall back to the stylesheet href?
What do you think?
Cheers, Wendell
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Sorin, At 11:14 AM 2/8/2008, you wrote:
I think the dialog for associating a CSS stylesheet should offer a field for the title as in the dialog for setting a stylesheet in the document type in the preferences. As you noted the title is necessary for the combo box on the toolbar but it is also required by the specification for alternate stylesheets:
http://www.w3.org/TR/REC-html40/present/styles.html#h-14.3.2
Also you have to set the rel pseudo-attribute to "alternate stylesheet".
Ah, that's good to know, thanks. (Hm: any validation for these specs?) Cheers, Wendell ====================================================================== Wendell Piez mailto:wapiez@mulberrytech.com Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================

Hello, No, there is no validation of the xml-stylesheet processing instructions other than the standard well-formed check of the XML parser. I think we could validate in a future version the names of the pseudo-attributes and the values of the "type" and "alternate" pseudo-attributes. Any other checks that should be made? Regards, Sorin Wendell Piez wrote:
Ah, that's good to know, thanks.
(Hm: any validation for these specs?)
Cheers, Wendell

I'm not crying out for it, but there is the 'robots' PI: http://www.atrus.org/writings/technical/robots_pi/ Brett Sorin Ristache wrote:
Hello,
No, there is no validation of the xml-stylesheet processing instructions other than the standard well-formed check of the XML parser. I think we could validate in a future version the names of the pseudo-attributes and the values of the "type" and "alternate" pseudo-attributes. Any other checks that should be made?
Regards, Sorin
Wendell Piez wrote:
Ah, that's good to know, thanks.
(Hm: any validation for these specs?)
Cheers, Wendell
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

I am sorry, I was not clear enough. I mean other checks for the xml-stylesheet PI. By the way is the "robots" PI defined in an official specification or draft of a specification? On that website I just see the proposal of one person. Is this PI used in that format by Web robots? Regards, Sorin Brett Zamir wrote:
I'm not crying out for it, but there is the 'robots' PI: http://www.atrus.org/writings/technical/robots_pi/
Brett
Sorin Ristache wrote:
I think we could validate in a future version the names of the pseudo-attributes and the values of the "type" and "alternate" Any other checks that should be made?

Sorin Ristache wrote:
I am sorry, I was not clear enough. I mean other checks for the xml-stylesheet PI.
By the way is the "robots" PI defined in an official specification or draft of a specification? On that website I just see the proposal of one person. It's apparently not any kind of official specification. The version that it says it was based off was mentioned in Elliotte Rusty Harold's "XML in a Nutshell" which is where I first heard about it.... Is this PI used in that format by Web robots?
Sorry, I don't know. Brett
Regards, Sorin
Brett Zamir wrote:
I'm not crying out for it, but there is the 'robots' PI: http://www.atrus.org/writings/technical/robots_pi/
Brett
Sorin Ristache wrote:
I think we could validate in a future version the names of the pseudo-attributes and the values of the "type" and "alternate" Any other checks that should be made?
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Sorin, At 04:13 AM 2/11/2008, you wrote:
No, there is no validation of the xml-stylesheet processing instructions other than the standard well-formed check of the XML parser. I think we could validate in a future version the names of the pseudo-attributes and the values of the "type" and "alternate" pseudo-attributes. Any other checks that should be made?
Not that I can think of (but I haven't read the spec carefully). oXygen certainly has all the tools in it needed for string-inspection pseudo-attribute validation. :-) Cheers, Wendell ====================================================================== Wendell Piez mailto:wapiez@mulberrytech.com Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
participants (3)
-
Brett Zamir
-
Sorin Ristache
-
Wendell Piez