Mega Code Archive

 
Categories / XML / XSLT StyleSheet
 

Output variable

<?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0"   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"   xmlns:acme="http://rntsoft.com/xslt" exclude-result-prefixes="acme">   <xsl:output encoding="iso-8859-1" indent="yes" />   <xsl:variable name="rntsoft:company-name"     select="'A Limited'" />   <xsl:template match="/">     <c>       <xsl:value-of select="$rntsoft:company-name" />     </c>   </xsl:template> </xsl:stylesheet> Output: <?xml version="1.0" encoding="iso-8859-1"?> <c>A Limited</c>