Re: how can I get the subelement

Subject: Re: how can I get the subelement
From: liying <lsui@xxxxxxxxxxx>
Date: Tue, 14 Nov 2000 11:08:18 -0800
thanks edmund,

but I still get something, here is my xml file and xsl file

<?xml version="1.0"?>
<book category="reference">
  <author>Nigel Rees</author>
  <title>Sayings of the Century</title>
<book category="fiction">
  <author>Evelyn Waugh</author>
  <title>Sword of Honour</title>
<book category="fiction">
  <author>Herman Melville</author>
  <title>Moby Dick</title>
<book category="fiction">
  <author>J. R. R. Tolkien</author>
  <title>The Lord of the Rings</title>
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl=""; version="1.0"

<xsl:template match="//author/*" >
    <xsl:value-of select="name()" />



and the result is

multivac (28) % java com.icl.saxon.StyleSheet book.xml book1.xsl
<?xml version="1.0" encoding="utf-8" ?>

  Nigel Rees
  Sayings of the Century

  Evelyn Waugh
  Sword of Honour

  Herman Melville
  Moby Dick

  J. R. R. Tolkien
  The Lord of the Rings

It just strange

thanks anyway

 XSL-List info and archive:

Current Thread