Nic Miloslav Example 24 | KEYWORDS EXAMPLES AUTHORS |
---|
Function concat() can stick several strings together
XML | HOME XSL 1 |
---|
<xslTutorial > |
<user firstName="John" surname='Smith'/> |
<user firstName="Joe" surname='Sullivan'/> |
<user firstName="Charles" surname='Doohen'/> |
</xslTutorial> |
XSL 1 | HOME XML HTML 1 OUTPUT 1 |
---|
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' > |
<xsl:template match="//user"> |
<P><xsl:value-of select="concat(@firstName,' ',@surname)"/></P> |
</xsl:template> |
</xsl:stylesheet> |
HTML 1 | HOME XML XSL 1 OUTPUT 1 |
---|
<HTML> |
<HEAD> </HEAD> |
<BODY> |
<P>John Smith</P> |
<P>Joe Sullivan</P> |
<P>Charles Doohen</P> </BODY> </HTML> |
OUTPUT 1 | HOME XML XSL 1 HTML 1 |
---|
John Smith
Joe Sullivan
Charles Doohen