http://www.w3.org/1999/XSL/Transform
c.asString (target : any) : string
The function asString converts any argument into a string representation.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:output method="xml" />
<xsl:template match="/">
</xsl:stylesheet><xsl:variable name="var">
<html>
</xsl:variable><p>Hello World</p>
</html><xsl:value-of select="c.asString($var)" />
</xsl:template>Escaping a nodeset
In this example a variable with some xml data is converted to an escaped string representation. The following output is generated:
<html><p>Hello World</p></html>