Thanks for your reply Lars, but I don't think that I can send input and
stylesheets, because I can't find the source of the problem yet, and
otherwise I've to upload quite some sources...

I'll try to write the scenario down: I want to create reports with
Cocoon, in various formats (e.g. HTML, XML and PDF). I use Apache's
document-v12 document format for that, and I included the
document2fo.xsl and document2html.xsl stylesheets from the Forrest
project into my project (with very small modifications to make them
work). But my reports can contain more information than document-v12
allows, so I modified the stylesheets a bit. E.g. I can include a chart
(using Fins) and I can include forms in the HTML reports to do some
filtering on data, etc. Note that I don't validate documents agains
document-v12.dtd, I only use it as a guideline for my source documents.

Somewhere in the pipeline it adds those messy namespaces to tags, but I
can't find out where it goes wrong. It seems to go wrong at multiple
places, or a combination of places. Things that I found:

1. some of my source XML files (generated with JXTG) include a
<jx:import .../> tag. If I replace that tag, paste the imported file
just in the source file, and remove the namespaces, it seems to work.

2. Also when I remove my chart (<chart:chart .../>), it works.

3. When I apply the forms transformer, then the document2html.xsl and
then the forms-styling.xsl, it seems to work. It seems that the forms
transformer removes the messy xml namespaces as well...

It's all very weird to me, I can't put my finger on the problem...

Regards,
Bart.

> -----Original Message-----
> From: Lars Huttar [mailto:[EMAIL PROTECTED]
> Sent: Saturday, October 09, 2004 11:29 PM
> To: [EMAIL PROTECTED]
> Subject: RE: XML not well formed after transformation -
> xmlns:[EMAIL PROTECTED]@#="[EMAIL PROTECTED]@#"
> 
> Can you show more of the sample input, stylesheet, and output?
> Lars
> (This may be more of an XSLT than a Cocoon question, so you're welcome
to
> reply to me privately.)
> 
> 
> > -----Original Message-----
> > From: Bart Molenkamp [mailto:[EMAIL PROTECTED]
> > Sent: Friday, October 08, 2004 10:21 AM
> > To: [EMAIL PROTECTED]
> > Subject: XML not well formed after transformation -
> > xmlns:[EMAIL PROTECTED]@#="[EMAIL PROTECTED]@#"
> >
> >
> > Hi all,
> >
> > What is someone doing wrong when, after applying a stylesheet to a
> > document, the result document contains xmlns:[EMAIL PROTECTED]@#="[EMAIL 
> > PROTECTED]@#".
> >
> > The XSLT processor seems to add this namespace after a <xsl:copy-of
> > select="*"/> element. Anybody known with this behaviour?
> >
> > Thanks in advance,
> > Bart.
> >
> >
---------------------------------------------------------------------
> > 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]


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

Reply via email to