cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manpreet" <manpreetnag...@yahoo.com>
Subject Re: some problem !!
Date Mon, 21 Aug 2000 13:02:40 GMT
Thanks Swapnil and Ed , it worked .

----- Original Message -----
From: Sinvhal, Swapnil <Swapnil.Sinvhal@hpsglobal.com>
To: <cocoon-users@xml.apache.org>
Sent: Tuesday, August 22, 2000 5:29 PM
Subject: RE: some problem !!


> Hi, Manpreet,
>
> In your stylesheet, use the namespace as :
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
> instead of <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
>
>
> I think this should solve your problem
>
> Regards,
> Swapnil
>
> > -----Original Message-----
> > From: Manpreet [SMTP:manpreetnagpal@yahoo.com]
> > Sent: Monday, August 21, 2000 4:47 PM
> > To: cocoon-users@xml.apache.org
> > Subject: some problem !!
> >
> > Hi Everybody,
> >
> > Im applying a simple xsl to an xml document, but couln't make it work
> > through cocoon.The same example works fine when xml file is opened in
IE
> > 5.0
> > Here are the two files:
> >
> > allelement.xml
> >
> > <?xml version="1.0"?>
> > <?xml-stylesheet version="1.0" href="allelements.xsl" type="text/xsl"?>
> > <?cocoon-process type="xslt" ?>
> > <PERIODIC_TABLE>
> >       <ATOM>
> >         <NAME>Actinium</NAME>
> >         <ATOMIC_WEIGHT>227</ATOMIC_WEIGHT>
> >     </ATOM>
> >     <ATOM>
> >         <NAME>Aluminum</NAME>
> >         <ATOMIC_WEIGHT>26.98154</ATOMIC_WEIGHT>
> >     </ATOM>
> > </PERIODIC_TABLE>
> >
> > allelements.xsl
> >
> > <?xml version="1.0"?>
> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
> > <xsl:template match="/">
> > <html>
> > <head>
> > <title>
> >  First XML application
> > </title>
> > </head>
> > <body>
> >  <xsl:for-each select="PERIODIC_TABLE">
> >    <xsl:for-each select="ATOM">
> >  <p>
> >   <xsl:for-each select="NAME">
> >     <xsl:value-of select="." />
> >   </xsl:for-each>
> >   :
> >   <xsl:for-each select="ATOMIC_WEIGHT">
> >     <xsl:value-of select="." />
> >   </xsl:for-each>
> >   </p>
> >  </xsl:for-each>
> >  </xsl:for-each>
> >  </body>
> > </html>
> > </xsl:template>
> > </xsl:stylesheet>
> >
> > Any help is appreciated.
> >
> > Thanks for your time,
> >
> > Manpreet Singh
>
> ---------------------------------------------------------------------
> 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