EXSLT - str:align - Use Case 1

Category: example
XML Definition: str.align.xml
Function or Template: function

Use Case

Source (view)

<a>
   <c>Is this EXSLT? No. no</c>
</a>

Stylesheet (view)

<xsl:template match="a">
   <xsl:apply-templates />
</xsl:template>
<xsl:template match="*">
   <xsl:value-of select="." />
 -
      <xsl:value-of select="str:align(string(.), '------------------------------', 'left')" />
   <xsl:value-of select="str:align(string(.), '  ', 'right')" />
   <xsl:apply-templates select="*" />
</xsl:template>

Change History

Previous Version: ..NaN.html

VersionModifiedByDetails
2001-06-26Chris Bayes

http://www.exslt.org/str/functions/align/str.align.use-case.1.html last modified 2001-06-26