I'm running into a small nuisance with Cocoon 2.0.2 (I'm running WinXP).
After my XSP has been processed, I find the resulting xml file still has
all the namespaces from the xsp.
This is bumming me out because I have unit tests on my xml output, and I
have to update them to include these extraneous namespaces every time I
refactor my xsp's. (Plus it's a little wasteful to pass these namespace
declarations around when they aren't needed).
To see an example of this, go to docs/samples/xsp/hello.xsp.
Change the first line to read:
<xsp:page language="java"
xmlns:xsp="http://apache.org/xsp"
xmlns:foo="http://www.bigcompany.com" exclude-result-prefixes="foo">
Then navigate to:
http://localhost:8080/cocoon/xsp-plain/hello?cocoon-view=content
You should get:
<?xml version="1.0" encoding="UTF-8" ?>
<page xmlns:xsp="http://apache.org/xsp" xmlns:foo="http://lumigent.com">
<title>Hello</title>
<content>
<para>This is my first Cocoon page!</para>
<para>With the help of XSP and Apache Cocoon 2.0.2</para>
</content>
</page>
Notice how you get an xmlns:foo declaration here.
Exclude-result-prefixes doesn't seem to make a difference. In my case,
I have quite a few namespaces, such as cinclude, esql, etc.
I went into esql.xsl and threw in exclude-result-prefixes="esql" on
xsl:stylesheet, but it didn't make a difference.
So now I'm stumped.
Anyone out there know how to fix this?
Thanks,
Stephen Ng
Lumigent
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>