My sitemap is as below:

   <map:pipeline>
    <map:match pattern="*/*.*">
     <map:generate src="personnel.xml"/>
     <map:transform type="xslt" src="personnel2.xsl"/>     
     <map:transform type="xslt" src="personnel.xsl"/>
     <map:serialize/>
    </map:match>
   </map:pipeline>
XML file is(personnel.xml):

<?xml version="1.0"?>
<personnels>
  <personnel>
    <name>Cenk</name>
    <surname>Uysal</surname>
    <title lang="tr">Arastirma Gorevlisi</title>
    <title lang="en">Searching Assistant</title>
  </personnel>
</personnels>

First XSL file (personnel2.xsl):

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
    <xsl:template match="/">    
      <personnels>
        <personnel>
          <xsl:for-each select="personnels/personnel">
            <title><xsl:value-of select="title"/></title>
          </xsl:for-each>
        </personnel>
      </personnels>
    </xsl:template>
</xsl:stylesheet>

Second XSL file(personnel.xsl);

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:template match="/">
 <html>
 <body>
   <xsl:for-each select="personnels/personnel">
     <xsl:value-of select="title"/>
   </xsl:for-each>
 </body>
 </html>
</xsl:template>
</xsl:stylesheet>
As you can see, my code does nothing. I try to transform my XML to
another XML with personnel2.xsl stylesheet and then to HTML with
personnel.xsl

But I get error! What is wrong with this code? 

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to