Usage Note 23624: How can I apply an XSL or CSS style sheet to output generated with
the XML engine?
To apply an XSL style sheet to output generated with the XML engine,
add the <link> tag within the event Doc. If you specify a
relative path for the XSL style sheet, the file will only need to
be located in the same directory as the XML file. If this path is
hardcode and moved around or sent to someone else, the link will
break.
proc template;
define tagset Tagsets.testxsl;
notes "SAS XML model";
define event XMLversion;
put "<?xml version=""1.0""";
putq " encoding=" ENCODING;
put " ?>" NL;
put "<?xml-stylesheet type='text/xsl' href='class1.xsl'?>" NL;
break;
end;
parent=tagsets.sasxmog;
end;
run;
libname temp xml 'c:\temp.xml' tagset=tagsets.testxsl;
data temp.class;
set sashelp.class;
run;
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | low |
| Topic: | SAS Reference ==> ODS (Output Delivery System) Third Party ==> Output ==> XML
|
| Date Modified: | 2004-01-05 16:24:58 |
| Date Created: | 2003-12-24 12:18:11 |