[oXygen-user] assistance for associating an XML document with a stylesheet?
Sorin Ristache
Tue Apr 4 09:48:44 CDT 2006
Hello,
I added a feature request on our bugzilla for autocompletion on the name
and attributes of the processing instructions "xml-stylesheet" and
"oxygen". 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.
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
More information about the oXygen-user
mailing list