<?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://java2s.com/xslt" exclude-result-prefixes="acme">
<xsl:output encoding="iso-8859-1" indent="yes" />
<xsl:variable name="java2s:company-name"
select="'A Limited'" />
<xsl:template match="/">
<c>
<xsl:value-of select="$java2s:company-name" />
</c>
</xsl:template>
</xsl:stylesheet>
Output:
<?xml version="1.0" encoding="iso-8859-1"?>
<c>A Limited</c>
|