2006-08-21 16:34:44

EXSLT 2.0 - Common (http://www.exslt.org/exsl/index.html)

Copyright 2005 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

For the basic specification, see: http://www.exslt.org/exsl/elements/document/index.html The only URI scheme supported by 4Suite currently is 'file:' Security note: As a precaution, if you try to overwrite an existing file, it will be saved to a temporary file (there will be a warning with the file name). If this this precaution fails, the instruction will abort. You can override this precaution, always allowing the function to overwrite a document by using the f:overwrite-okay extension attribute.

- <Ft.Xml.Xslt.ContentInfo.Rep instance>
- True
- {'cdata-section-elements': <Ft.Xml.Xslt.AttributeInfo.QNamesAvt instance>, 'doctype-public': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'doctype-system': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'encoding': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'f:overwrite-safeguard': <Ft.Xml.Xslt.AttributeInfo.YesNoAvt instance>, 'f:utfbom': <Ft.Xml.Xslt.AttributeInfo.YesNoAvt instance>, 'href': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>, 'indent': <Ft.Xml.Xslt.AttributeInfo.YesNoAvt instance>, 'media-type': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'method': <Ft.Xml.Xslt.AttributeInfo.QNameAvt instance>, ...}

The purpose of the exsl:node-set function is to return a node-set from a result tree fragment. If the argument is a node-set already, it is simply returned as is. If the argument to exsl:node-set is not a node-set or a result tree fragment, then it is converted to a string as by the string() function, and the function returns a node-set consisting of a single text node with that string value.

The exsl:node-set function does not have side-effects: the result tree fragment used as an argument is still available as a result tree fragment after it is passed as an argument to exsl:node-set.

The exsl:object-type function returns a string giving the type of the object passed as the argument. The possible object types are: 'string', 'number', 'boolean', 'node-set', 'RTF' or 'external'.

'http://exslt.org/common'
{('http://exslt.org/common', 'document'): <class Ft.Xml.Xslt.Exslt.Common.DocumentElement>}
{('http://exslt.org/common', 'node-set'): <function NodeSet>, ('http://exslt.org/common', 'object-type'): <function ObjectType>}
{'http://exslt.org/common': 'exsl'}
'http://xmlns.4suite.org/ext'