xsl-list
[Top] [All Lists]

RE: Platform detection

2002-11-11 16:11:55
You can pass this kind of information to the stylesheet as a parameter
from the calling code.

But since you can't set the encoding attribute dynamically from within
the stylesheet, there's not much point.

If you're using JAXP, you can set the encoding from the API using
setOutputProperties(), which is a much better way of doing it.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Russell Kohn
Sent: 11 November 2002 21:29
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Platform detection


  I'd like to dynamically assign the encoding attribute of the output 
method based on platform.  Is there any way for an XSLT stylesheet to 
detect the platform on which the processor is running?

TIA,

- Russ


Russell Kohn , Chaparral Software & Consulting Services Inc. 
Calabasas, California -  http://www.chapsoft.com - 818.225.1247

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>