cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dafang Zhang <dafang.zh...@wcom.com>
Subject RE: [C2] XInclude - solved :)
Date Thu, 18 Jan 2001 20:34:20 GMT
Hi, Viktors,

You are the man!  Thanks a lot.  I missed the line <map:tranform
type="xinclude"/>!  This is my second day touching the baby, C2.  Pretty
cool, isn't it?

Regards.
Dafang

> -----Original Message-----
> From: Viktors Rotanovs [mailto:Viktors@Rotanovs.com]
> Sent: Thursday, January 18, 2001 2:03 PM
> To: dafang.zhang@wcom.com
> Subject: Re: [C2] XInclude - solved :)
>
>
> Hi Dafang,
>
> here's the code that actually works:
>
> <xinclude:include parse="xml" href="news.xml"/>
>
> news.xml is in the same directory as the file with this line
> (index.xml).
> From some date in January xinclude has some problems
> with #xpointer...... syntax, but if you include whole file you
> shouldn't have any problems. I didn't check out cocoon2 for
> week or two. By the way, did you add
> <map:transform type="xinclude"/>
> after map:generate in the sitemap? Without it it won't work.
> Also be sure that line
> <map:transformer name="xinclude"
> src="org.apache.cocoon.transformation.XIncludeTransformer"/>
> is also in the sitemap.
>
> Hope this helps! :)
>
> PS: better ask questions on the list, by doing so you help
> others who read mailing list archives :-)
>
> On Thursday 18 January 2001 21:52, you wrote:
> > Hi, Viktors,
> >
> > I got xinclude working on C1.8, but for some reason, xinclude is not
> > including anything on C2 (CVS check-out: 01/17/00), even if
> I used the
> > syntax you stated.  Would you please send me a simple example?
> >
> > Thanks in advance.
> >
> > Dafang Zhang
> >
> > > -----Original Message-----
> > > From: Viktors Rotanovs [mailto:Viktors@Rotanovs.com]
> > > Sent: Wednesday, November 29, 2000 6:03 PM
> > > To: cocoon-users@xml.apache.org
> > > Subject: [C2] XInclude - solved :)
> > >
> > >
> > > Hi,
> > >
> > > I've solved this, the syntax has changed from
> > > <include xinclude:href.... in 1.8 to
> > > <xinclude:include href.... in 2.0
> > >
> > > Sorry for flooding the list :)
> > >
> > > --
> > > Best Wishes,
> > > Viktors Rotanovs
> > > http://riga.nu/ - XML websites, Riga, Latvia. Phone/Fax
> +371 7377-472
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
> --
> Best Wishes,
> Viktors Rotanovs
> Riga, Latvia. Phone/Fax +371 7377-472
>


Mime
View raw message