Jeremy Quinn wrote:
> 
> Sorry about the four copies of my previous email.
> 
> At 1:58 PM -0400 11/7/01, Berin Loritsch wrote:
> >Jeremy Quinn wrote:
> >> I am struggling to use the XInclude Transformer in Cocoon 2.
> >
> >There are two issues with it (I just got done fixing it).
> >
> >1) You need to include an xml:base="context://"  This tells the
> >   Xinclude processor where the root is.  P.S.  The newly checked
> >   in version will update the namespace to "http://www.w3.org/2001/XInclude";.
> 
> Something like this?
> 
> <xinclude:include href="linkbase/hrc.xml" parse="xml" xml:base="context://"/>

Exactly.  Oh, the spec says that "xml" is the default parse type. 
Therefore
you could shorten it to:

<xi:include href="hrc.xml" xml:base="context://linkbase/"/>


I typically mark my "xml:base" attribute at the same time I mark my
namespace
declaration, like this:

<root xmlns:xi="http://www.w3.org/2001/XInclude";
xml:base="context://linkbase/">

  <xi:include href="hrc.xml"/>

</root>


The actual prefix for the namespace does not matter--it will still
work.  On an
interesting note, the current XInclude spec uses the "xi" prefix which
is much
shorter.

S/MIME Cryptographic Signature

Reply via email to