This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Why "value-of "cannot work?



 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]