Re: simple redraft Re: [exslt] Environment Variable Retrieval Spec
by James Fuller other posts by this author
Feb 17 2006 12:20AM messages near this date
Re: [exslt] Text to XML
|
Re: simple redraft Re: [exslt] Environment Variable Retrieval Spec
& XSLT
minor redraft, forwarding now
> ------------------------------------------------------------------------
>
>
> EXSLT <http://www.exslt.org/> - System <http://www.exslt.org/sys/>
>
> Implementer Page <sys.html>
>
> How To <../howto.html>
>
> Downloads <../download.html>
>
> Modules
>
> Dates and Times <../date/index.html>
>
> Dynamic <../dyn/index.html>
>
> Common <../exsl/index.html>
>
> Functions <../func/index.html>
>
> Math <../math/index.html>
>
> Random <../random/index.html>
>
> Regular Expressions <../regexp/index.html>
>
> Sets <../set/index.html>
>
> Strings <../str/index.html>
>
> System <../sys/index.html>
>
> Submissions <../submissions/>
>
> Mailing List <../list>
>
> Contact <../contact.html>
>
>
>
> *Implementer Page: *sys.html
> *Module Package <../howto.html#module-level>: *sys.zip
>
> /EXSLT - System/ provides features for using the host system.
>
> Currently there are no functions or elements defined for this module.
>
> This module defines an additional
> namespace-|http://exsl.org/environment|-which can be used for
> accessing system environment variables via the |system-property|
> <http://www.w3.org/TR/xslt.html#function-system-property> function.
>
> Use this namespace as follows. Given |SQ|, a string that is a QName
> <http://www.w3.org/TR/REC-xml-names#NT-QName> with a prefix that maps
> to |http://exsl.org/environment| and local part |L|,
> |system-property(SQ)| returns the value of the system environment
> variable |L|. For example, if "|env|" maps to this namespace, then
> |system-property("env:USER")| might return "john".
>
> The result of a call to system-function ("env:X") MUST always return
> the same value (for a given X) throughout the processing session.
> Which environment variables are available to a given XSLT
> transformation is system- and implementation-dependent. Whenever an
> implementation cannot provide a value for a given environment
> variable, it MUST return the zero-length string as the result of the
> |system-property| call. The mapping of the encoding of the variable's
> original value to that of the XPath string object is
> implementation-dependent.
>
> *Note:* Retrieving environment variables can pose a security risk if
> those environment variables expose sensitive system information.
>
> XSLT processors may support any number of the extension elements and
> functions given in this module.
>
> Using EXSLT will only make your stylesheet portable amongst the
> implementations that support EXSLT. Note that there is no requirement
> for XSLT processors that are compliant to XSLT to support the
> extensions described within EXSLT.
>
>
> Namespace
>
> The namespace for EXSLT - System is:
>
> http://exslt.org/system
>
> Throughout this document, the prefix |sys| is used to refer to this
> namespace. Any other prefix can be used within a particular stylesheet
> (though a prefix must be specified to enable the extension functions
> to be recognised as extensions).
>
> To use these extensions, you need to declare this namespace as an
> extension namespace in your stylesheet. If your processor supports
> this module, then that's all you need to do, but if it doesn't, then
> you need to use a specific third-party implementation or the module
> stylesheet. Typically, your stylesheet will look like:
>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:sys="http://exslt.org/system"
> extension-element-prefixes="sys">
>
> <xsl:import href="sys.xsl" />
>
> ...
>
> </xsl:stylesheet>
>
>
> http://www.exslt.org/sys/index.html last modified 2006-02-15
>
_______________________________________________
exslt mailing list
list@[...].org
http://www.exslt.org/list
Thread:
James Fuller
Colin Paul Adams
James Fuller
John L. Clark
Colin Paul Adams
John L. Clark
Uche Ogbuji
John L. Clark
Colin Paul Adams
James Fuller
|