You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by David Leangen <dl...@canada.com> on 2004/03/08 01:54:23 UTC
Avoiding a problem with html output in xsl transforms
Hello!
I have a question (or suggestion, depending on how you look at it).
A while ago, I did something really stupid (again!) that caused me lose
hours and hours of time, not to mention shorten my life by a few weeks from
stress and frustration. ;-)
I couldn't figure out why my transforms weren't working with namespaces. For
some reason, a samespace such as "ns:tag" was being read as
"local-name()='ns:tag'" with no prefix! This was causing me to not be able
to do ANYTHING... (I can explain in more detail if you like.)
Well, I didn't want to bother people on the list again, so I kept plugging
away at the problem.
Anyway, I finally noticed that the problem was due to my having included in
my xsl but not noticed:
<xsl:output method="html">
Now, the first thing I want to do is warn others to be careful of this
"little detail" so as not to waste time like I did. If you include this
instruction, it will cause everything to break if you use namespaces like I
do.
The second thing is that I was wondering if it would be possible to add a
feature to Cocoon to simply avoid this instruction, since it should never be
necessary. I realise that this should be up to the programmer, but since it
should never be used by Cocoon anyway, then why not have the processor
simply ignore it?
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org