Sorin Ristache wrote:
Hello,
I added a feature request on our bugzilla for autocompletion on the
name and attributes of the processing instructions "xml-stylesheet"
and "oxygen".
Thanks! That will be very helpful.
The second one is created by the Associate schema action. Generally
"xml-stylesheet" is interpreted by a web browser when it formats the
XML document for display. I think the second approach about adding an
action for stylesheets like Associate schema for schemas duplicates
the association of a transformation scenario. The transformation
scenario is the mechanism used in <oXygen/> to associate a stylesheet
with an XML document.
The missing piece though is that the transformation scenario mechanism
doesn't provide a way to record the association in the XML document
itself... does it? (In other words, to persist the association.)
Currently the "Edit [transformation] scenario" dialog has a checkbox
called 'Use "xml-stylesheet" declaration'. If it also had a button or
checkbox to 'Insert xml-stylesheet declaration' [tooltip: Insert
xml-stylesheet declaration into document now] (grayed out unless the
XSL URL field has been populated), then that would meet the need.
Lars
Best regards,
Sorin
http://www.oxygenxml.com/
Lars Huttar wrote:
Hello,
I was leading a course on XML, XSLT and related technologies a few
weeks ago, and a question came up that has occurred to me sometimes:
Oxygen offers automated assistance for associating an XML document
with a DTD or Schema, inserting the appropriate declaration into the
XML document. Can it do the same for associating an XML document with
a stylesheet? E.g. I would like to insert
<?xml-stylesheet type="text/xsl" href="abc.xsl" ?>
at the top of the document, but I have a hard time remembering the
pseudo-attributes.
One way to approach it would be,
I type
<?
and press Ctrl+Space to get some suggested completions, like <?xml
and <?xml-stylesheet
When I choose xml-stylesheet, I would get suggested pseudoattributes
"type" and "href" with appropriate values.
Another approach is to enhance the Document / XML Document /
Associate menu item to allow associating a stylesheet.
Regards,
Lars
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user