This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Why "value-of "cannot work?
- To: xsl <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] Why "value-of "cannot work?
- From: caihongshui <caimoney at 371 dot net>
- Date: Sat, 24 Feb 2001 15:36:1 +0800
- Reply-To: xsl-list at lists dot mulberrytech dot com
I wrote an xml document and an xsl blow,and they were in the same directory.I wanted
to see the result ---Fred Smith on my screan.But i was disappointed.
XML:cc.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="cc.xsl"?>
<family>
<person>
<given-name age="10">Fred</given-name>
<family-name>Smith</family-name>
</person>
</family>
XSL: cc.xsl
<xsl:stylesheet xmlns:xsl="www.3org.com/TR/WD-xsl">
<xsl:template match="/">
<xsl:template match="person">
<p>
<xsl:value-of select="person/given-name" />
<xsl:value-of match="family-name" />
</p>
</xsl:template>
</xsl:template>
</xsl:stylesheet>
best regard
amy
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list