Set XSLT on 'client side' for browers containing "MSIE 6" in their user agent
and 'server side' for other browsers.
<nvd:nsp>
String s = getVariableAsString( "request.header[User-Agent]" );
if( s.indexOf( "MSIE 6" ) > 0 ) setVariable( "xsltready", "true" );
else setVariable( "xsltready", "false" );
</nvd:nsp>
<nvd:if test="$xsltready == 'false'">
<nvd:command name="processing-instruction.add"
instruction="nvd-process name="xsl-transform" href="index.xsl""/>
</nvd:if>
<nvd:if test="$xsltready == 'true'">
<nvd:command name="processing-instruction.add"
instruction="xml-stylesheet href="index.xsl" type="text/xsl""/>
</nvd:if>
|