|
Subject: [xsl] Why "value-of "cannot work? From: caihongshui <caimoney@xxxxxxx> Date: Sat, 24 Feb 2001 15:36:1 +0800 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Explorer Treeview with XS, Michael Beddow | Thread | RE: [xsl] Why "value-of "cannot wor, Michael Kay |
| Re: [xsl] Question regarding msxml3, Michael Beddow | Date | [xsl] testing for child nodes, Robert Koberg |
| Month |