hello , 

I have  servicemix-saxon  su with following xslt 

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";><xsl:template match="/">
   <test>
      <xsl:for-each select="catalog/cd">
      <cd>
        <xsl:value-of select="title"/>
        <xsl:value-of select="artist"/>
      </cd>
      </xsl:for-each>
   </test>
  
</xsl:template></xsl:stylesheet> 

following is xbean configuration 

<beans xmlns:saxon="http://servicemix.apache.org/saxon/1.0";
       xmlns:nte="http://www.ekaplus.com/NotifyEvent/";
       xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance";
       xsi:schemaLocation="http://servicemix.apache.org/saxon/1.0
http://servicemix.apache.org/schema/servicemix-saxon-3.2.3.xsd
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>

  <!-- START SNIPPET: xslt --> 
  <saxon:xslt service="nte:transformToDoc" endpoint="nte:transformToDocEP"
              resource="classpath:transform.xsl" />
  <!-- END SNIPPET: xslt --> 
  
 </beans>

xml file as follows 
         
 <catalog>
 <cd>
  <title>Empire Burlesque</title> 
  <artist>Bob Dylan</artist> 
  <country>USA</country> 
  <company>Columbia</company> 
  <price>10.90</price> 
  <year>1985</year> 
  </cd>
 <cd>
  <title>Hide your heart</title> 
  <artist>Bonnie Tyler</artist> 
  <country>UK</country> 
  <company>CBS Records</company> 
  <price>9.90</price> 
  <year>1988</year> 
  </cd>
<cd>
  <title>Greatest Hits</title> 
  <artist>Dolly Parton</artist> 
  <country>USA</country> 
  <company>RCA</company> 
  <price>9.90</price> 
  <year>1982</year> 
  </cd>
 </catalog>

I am getting the result as follows 


<test/>

but my expected result was 

<test><cd>Empire BurlesqueBob Dylan</cd><cd>Hide your heartBonnie
Tyler</cd><cd>Greatest HitsDolly Parton</cd></test>


can anybody point out the mistake here , it seems that for-each xslt
iterator is not working with saxon-xslt


regards

Brijesh N K 
-- 
View this message in context: 
http://www.nabble.com/saxon-xslt---for-each-iterator-tp22621757p22621757.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to