[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xslt transformation did not create any output

Subject: xslt transformation did not create any output
From: Roelof Wobben <rwobben@xxxxxxxxxxx>
Date: Fri, 9 Dec 2011 12:37:00 +0000
 xslt transformation did not create any output

I have this xml file :

<?xml version="1.0" encoding="utf-8" ?>
<website-name>Tamara Wobben</website-name>
<item handle="1">&lt;span class=&quot;order&quot;&gt;1&lt;/span&gt;</item>
<events />
<section id="6" handle="sections">Sections</section>
<entry id="9">
 <title handle="even-voorstellen">Even voorstellen</title>
 <body>Naam : Tamara Wobben
         Geboorte gewicht : 2000 gram
         Geboorte lengte : 44 cm.
         Geboortedatum : 1 september 2005

And this xslt 1.0 file :

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"

<xsl:template match="/" >
     <xsl:apply-templates select="head"/>
      <xsl:apply-templates select="content"/>
      <xsl:apply-templates select="bottom" />

  <xsl:template name="head" >
             <xsl:value-of select="$website-name"/> - <xsl:value-of
        <link rel="stylesheet" type="text/css"
        <link rel="alternate" type="application/rss+xml" title="Notepad Chaos
RSS Feed" href="http://www.notepadchaos.com/feed/" />
        <link rel="pingback" href="http://www.notepadchaos.com/xmlrpc.php" />
        <link rel="alternate" type="application/rss+xml" title="Notepad Chaos
Feed" href="http://www.notepadchaos.com/feed/" />
        <link rel="alternate" type="application/rss+xml" title="Notepad Chaos
Comments Feed" href="http://www.notepadchaos.com/comments/feed/" />
         <link rel="EditURI" type="application/rsd+xml" title="RSD"
href="http://www.notepadchaos.com/xmlrpc.php?rsd" />
         <link rel="wlwmanifest" type="application/wlwmanifest+xml"
          <link rel='index' title='Notepad Chaos'
href='http://www.notepadchaos.com/' />

  <xsl:template name="content" >
         <div id="outer">
                 <div id="container">
                         <div id="search">
                                 <form method="get" id="searchform"
                                         <input type="text" value="" name="s"
id="s" class="txtField" />
                                         <input type="submit"
id="searchsubmit" class="btnSearch" value="Find It ;" />
                             <div id="title">
                                 <h2>Tamara Wobben </h2>
                             <div id="content">
                                 <xsl:apply-templates select="main_area" />
                             <div id="side-columns" />
                                    <xsl:apply-templates  select="sidebar1"
                                    <xsl:apply-templates select="sidebar2" />

  <xsl:template name="main_area">
     <div class="col01">
         <div class="post">
             <h2><xsl:value-of select="title"/></h2>
             <div class="post-inner">
                    <xsl:value-of select="section/entry/body" />

 <xsl:template name="sidebar1" >
         <div class="col02">
             <div class="pages">
                     <!-- here comes the links to home, guestbook and so on
    <div class="head_menu">
         <!-- here comes the head menu -->

 <xsl:template name="sidebar2" >
     <div class="col03">
         <div class="recent-posts">
                 <!-- here comes the recent post -->

  <xsl:template name="bottom">
     <div id="footer-holder">
         <div class="footer">
             &#xA9; <a href="http://www.notepadchaos.com/">Notepad
Chaos</a><br />
            <a href="http://www.notepadchaos.com/">Notepad Chaos</a> uses the
<a href="http://www.notepadchaos.com">"Notepad Chaos v2"</a> theme.
         <span class="evaneckard">
            <a href="http://www.evaneckard.com">Evan Eckard Design</a>
         <span class="smashing">
                <a href="http://www.smashingmagazine.com">Smashing
         <span class="rss"><a


But if I run this in xmlspy I get the message that the transformation did not
create any output.

Can anyone help me figure out what i did wromg here ?


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.