cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <>
Subject Re: XSL doubt
Date Wed, 30 Jun 2004 06:27:26 GMT

>From past posts, it seems that method (1) does not
always work - I know I have struggled with it too...
But if it does, then its probably the simplest!


>>> 2004/06/30 07:31:14 AM >>>
Hello Oro,

there are also other ways to solve your problem:

(1) in the stylesheet

     the <xsl:stylesheet/> support the attribute
     exclude-result-prefixes is a white-space delimited list of
     namespaces to supress in the output. E.g.:

     <xsl:stylesheet version="1.0"  	

(2) with the help of the serializer

     write a own serializer and extends from the wml serializer.
     Overwrite the following Methods :

	public void endPrefixMapping(String prefix) throws SAXException
		// TODO Auto-generated method stub

	public void startPrefixMapping(String prefix, String uri)
            SAXException {
		// TODO Auto-generated method stub

      But with this approach you have no namespaces in your

I hope I could give you a little help!


Oro smith wrote:

> I have an xsl which begins like this:
> <xsl:stylesheet version="1.0"
>  xmlns:xsl=""
>   xmlns:page=""
> I also have <br> tags inside xsl. The xsl is used to generate wml.
> however when the wml is generated every br tag has an xmlns
associated with it.
> <br xmlns:page="">
> How can this be removed? 

To unsubscribe, e-mail: 
For additional commands, e-mail: 

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message