You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Conny Krappatsch <co...@smb-tec.com> on 2000/08/24 10:38:44 UTC

XInclude?, XSP and namespaces!

Hi,

I wrote a message 8 days ago and it seems as it never reached the list.
Let's see if I remember what I wanted to say:

First a question: 
How do I use the XInclude processor (talking about C1). I have the following
little xml file:

<?xml version="1.0"?>
<?cocoon-process type="xinclude"?>
<?cocoon-format type="text/xml"?>

<test xmlns:xinclude="http://www.w3.org/1999/XML/xinclude">
<xinclude xinclude:href="login.xml"/>
</test>

after Cocoon processing it looks like this:

<?xml version="1.0" encoding="UTF-8"?>

<test xmlns:xinclude="http://www.w3.org/1999/XML/xinclude">
<include xinclude:href="login.xml"/>
<!--Processed by XInclude--></test>
<!-- This page was served in 25 milliseconds by Cocoon 1.7.4 -->

... any ideas what I'm doing wrong? Why is the 'include' element not replaced
by the content of "login.xml"? (There were no error messages and "login.xml"
exists. I'm using Cocoon 1.7.4 recompiled with the latest
'XIncludeProcessor.java' (1.13), Xerces 1.1.3 and Xalan 1.2.D01.)

now something different:
I patched the XSP processor (more precise "xsp-java.xsl") to pass through 
namespaces. If you are interested in, what would be the best way to contribute?
(Let me say, that it's not that straight forward solution I had in mind,
because there seems to be a problem in namespace handling of Xalan, but it
does it's job.)

Conny

________________________________________________________________
Conny Krappatsch                     mailto:conny@smb-tec.com
SMB GmbH                             http://www.smb-tec.com