cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Sylvain.The...@swisscom.com>
Subject how to write a simple Hello World
Date Wed, 12 Jun 2002 08:40:24 GMT
Hi folks,

I'm new in the Cocoon world and I try to test a simple Hello World program.

Here my hello.xml document:

<?xml version="1.0"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="hello.xsl" type="text/xsl" ?>
<page>
  <titre>Hello World!</titre>
  <content>
    <paragraph>It's my first Cocoon page !</paragraph>
  </content>
</page>


And here my hello.xsl stylesheet:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="page">
<html>
<head>
<title/><xsl:value-of select="titre"/>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>

</xsl:stylesheet>


But when I request the hello.xml from my browser, nothing happend!
I just see my hello.xml file in the browser.
do I have fogotten something?


Thank you
Sylvain

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

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message