cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valdas Varnagiris" <val...@nomagiclt.com>
Subject Re: XML DTD validating
Date Fri, 30 Jun 2000 14:08:03 GMT
It seems you don't understand me , i don't need consultation on writing
stylesheets , i need to know how to validate xml documents using Cocoon ???

Anybody ,
please help ???


Valdas Varnagiris
Programmer
No Magic
e-mail: valvar@nomagiclt.com
www: http://www.nomagic.com

----- Original Message -----
From: "Nishit Trivedi" <nishit@planet.net>
To: <cocoon-users@xml.apache.org>
Sent: Friday, June 30, 2000 3:52 PM
Subject: Re: XML DTD validating


> 1. In xsl file u need cocoon pi's to let xsl file know about that...
>
> <xsl:template match="/">
>   <xsl:processing-instruction
> name="cocoon-format">type="text/html"</xsl:processing-instruction>
> <html>....
> .....
>
> 2. In xsl file, you don't have to worry about "message" attribute to make
it
> as template...
> I mean under "titile" template you can directly get the value of "message"
> like this
> ---------------------------------------------
> <xsl:template match="page">
> <title>
>  <xsl:value-of select="title"/>
> </title>
> <h1>Message:<br/></h1>
> <font color="red">
> <xsl:value-of select="message"/>  <--- try this
> <xsl:apply-templates/>                 <--- instead of this..comment it
> out...
> </xsl:template>
> ---------------------------------------------
>
> Nishit
> Internet Programmer
> Planet Access Networks
> 973-691-4704 Ext:157
> ----- Original Message -----
> From: "Valdas Varnagiris" <valvar@nomagiclt.com>
> To: "Cocoon" <cocoon-users@xml.apache.org>
> Sent: Friday, June 30, 2000 9:31 AM
> Subject: Re: XML DTD validating
>
>
> > I'v attached two files one xml file and one stylesheet for the xml file
> > transformation into html,
> > in the top of check.xml file i'v added DTD for the xml set
> > parser.validate=true in cocoon.properties file.
> > Th earlier mentioned exception is thrown when the xml is processed.
> >
> > ----- Original Message -----
> > From: "Paul Russell" <paul@luminas.co.uk>
> > To: <cocoon-users@xml.apache.org>
> > Sent: Friday, June 30, 2000 3:12 PM
> > Subject: Re: XML DTD validating
> >
> >
> > > On Fri, Jun 30, 2000 at 02:49:47PM +0200, Valdas Varnagiris wrote:
> > > > Thanks a lot,
> > > > i did as you said, but the problem remains...
> > >
> > > Hmm.. that's weird. If the version attribute is there, then
> > > the parse shouldn't be failing. Could give us an example
> > > content file and stylesheet?
> > >
> > > --
> > > Paul Russell                               <paul@luminas.co.uk>
> > > Technical Director,                   http://www.luminas.co.uk
> > > Luminas Ltd.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
> >
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>
> ---------------------------------------------------------------------
> 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