I have cinclude working to bring in external source. I now need to solve two
more problems. 

Problem 1:
I can bring in entire documents, but I cannot get specific element(s). I was
getting empty element, but used the following found on the Cocoon wiki

select="//*[local-name()='html']/*"

Now I can bring in the document fine, but I cannot tweak this to bring in
specific element(s). 

Problem 2:
I tried bringing into an xml document an external source that is html. I use
the default generator which is set to xml. I believe I need to bring in the
resource, JTidy, and serialize as xml before using in the cinclude. I've
tried some things based on what I have seen in the Cocoon samples, but
nothing works. I'm at a loss as to where I should go from here.

Suggestions are greatly appreciated.

Gary T. Schultz
Web Technical Administrator / GIS Coordinator
Wisconsin Department of Commerce
6th Floor
P.O. Box 7970
Madison, WI 
1-608-266-1283


-----Original Message-----
From: Aur�lien DEHAY [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 7:49 AM
To: [email protected]
Subject: Re: XInclude and CInclude


Hello.

Schultz, Gary - COMM wrote:
> In Cocoon, can XInclude be used to reference an outside resource, that is
a
> web address outside of the context of Cocoon? I've tried without success
and
> don't see any Cocoon examples pertaining to this. The wiki hasn't been
much
> help. I've looked at the CInclude examples which show this, but I haven't
> had success in implementation.

We're using xinclude to include some external documents:

<xi:include href="http://some/url"/> works fine.

> 
> XInclude or CInclude, which would be a recommended best practice for
> including resources outside the Cocoon context. Also, where is the best
> place to find good resources for both.

As I suppose xinclude transformer to conform to the specs, the best 
documentation should be the w3c's one:

http://www.w3.org/TR/xinclude/

Rgds
-- 
Aur�lien

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to