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]

Re: xslt sorting




-- snip
<?xml version="1.0"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="sort.xsl" type="text/xsl"?>

<content>
<employees>
        <employee>
                <name>
                        <given>Zoe </given>
                        <family>Zeldman</family>
                </name>
        </employee>
</employees>
<employees>
        <employee>
                <name>
                        <given>Kari </given>
                        <family>Scott</family>
                </name>
        </employee>
</employees>
-- snip

Your XML file is wrong (aside from the missing </content> tag) for what you
intend.  You have two separate <employees> nodes and each is being processed
separately.  It should look like:

<content>
<employees>
  <employee>
    <name>
       <given>Zoe </given>
       <family>Zeldman</family>
    </name>
  </employee>
  <employee>
    <name>
       <given>Kari </given>
       <family>Scott</family>
    </name>
  </employee>
</employees>
</content>

Steve Schrank
3M Health Information Systems



 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]