Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Frustrated with xxx:node-set

From: David Carlisle <davidc@--------->
To:
Date: 6/1/2005 7:58:00 PM
I changed the top of your stylesheet to use saxon 6's node-set extension
rather then MS's.

I get the result below, no empty summary element, so perhaps there is a
bug in the processor you are using.

David

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fx="http://icl.com/saxon">
<xsl:output indent="yes"/>



$ saxon sum.xml sum.xsl
<?xml version="1.0" encoding="utf-8"?>
<result xmlns:fx="http://icl.com/saxon">
   <foo>
      <B code="FOO">red</B>
      <B code="FOO">blue</B>
      <B code="FOO">blue</B>
      <B code="FOO">green</B>
   </foo>
   <bar>
      <B code="BAR">green</B>
      <B code="BAR">red</B>
      <B code="BAR">green</B>
      <B code="BAR">green</B>
      <B code="BAR">blue</B>
   </bar>
   <foobar_summary>
      <summary_for_foo>
         <summary code="FOO" color="red">1</summary>
         <summary code="FOO" color="blue">2</summary>
         <summary code="FOO" color="green">1</summary>
      </summary_for_foo>
      <summary_for_bar>
         <summary code="BAR" color="green">3</summary>
         <summary code="BAR" color="red">1</summary>
         <summary code="BAR" color="blue">1</summary>
      </summary_for_bar>
   </foobar_summary>
   <foo>
      <B code="FOO">green</B>
      <B code="FOO">blue</B>
      <B code="FOO">red</B>
      <B code="FOO">green</B>
      <B code="FOO">green</B>
      <B code="FOO">green</B>
      <B code="FOO">green</B>
   </foo>
   <bar>
      <B code="BAR">green</B>
      <B code="BAR">green</B>
      <B code="BAR">green</B>
      <B code="BAR">blue</B>
      <B code="BAR">blue</B>
   </bar>
   <foobar_summary>
      <summary_for_foo>
         <summary code="FOO" color="green">5</summary>
         <summary code="FOO" color="blue">1</summary>
         <summary code="FOO" color="red">1</summary>
      </summary_for_foo>
      <summary_for_bar>
         <summary code="BAR" color="green">3</summary>
         <summary code="BAR" color="blue">2</summary>
      </summary_for_bar>
   </foobar_summary>
</result>


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent