cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: Leftover tags from I18n
Date Thu, 08 Aug 2002 14:46:18 GMT
Alex Romayev wrote:
 > exclude-result-prefixes in the same file as declares
 > the prefix worked.


A little explanation:

Namespace prefix and namespace uri are two different things. You can declare 
xmlns:bla="http://apache.org/cocoon/i18n/2.0" and the i18n transformer 
should work nevertheless (I didn't tested it ;-) ). Furthermore you can mix 
the prefixes or add more prefixes with the same uri.

If you tell the XSLT in one stylesheet to remove the namespace i18n prefix 
without telling it which namespace uri to remove (so without a bound 
namespace uri), it does not know what to do.

Conclusion:
If you bind the namespace "http://apache.org/cocoon/i18n/2.0" to the 
namespace prefix i18n in the last stylesheet in pipe (even if you don't need 
it) a exclude-result-prefix should work too. So you would only need it in 
one stylesheet. You only may not copy elements or attributes with namespaces 
to the output - namespaces are copied independent of exclude-result-prefix.

Regards,

Joerg

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message