[oXygen-user] assistance for associating an XML document with a stylesheet?

Lars Huttar
Mon Apr 3 10:19:43 CDT 2006


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