cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manos Batsis" <m.bat...@bsnet.gr>
Subject RE: How to remove namespace declarations and prefixes?
Date Mon, 01 Jul 2002 12:18:37 GMT

> From: Reinhard Poetz [mailto:reinhard_poetz@gmx.net] 

> Is there a difference in performance - your solution compared 
> to a working
> "exclude-result-prefixes"-attribute?

Depends on whether you want to add a new stylesheet or modify the
existing one (if any). While on the second choice (using xsl:element
with local-name() in all templates that handle elements and attributes)
performance should not change notisably; essentially this and
exclude-result-prefixes do the same thing.


> Did you try it with Cocoon? If yes, which version do you use?

Nope I haven't.

> 
> My stylesheet:
> 
> <xsl:stylesheet
> 	version="1.0"
> 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>    xmlns:f="http://www.poetz.cc/forms"
>    xmlns:l="http://www.poetz.cc/linking"
>    xmlns:cinclude="http://apache.org/cocoon/include/1.0"
>    xmlns:dc="http://purl.org/dc/elements/1.1/"
>    xmlns:rss="http://purl.org/rss/1.0/"
>    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> 	exclude-result-prefixes="f">

Yes, the above will only remove namespace prefixes bound to
http://www.poetz.cc/forms
To filter all prefixes out modify the exclude-result-prefixes attribute
to 

exclude-result-prefixes="f l cinclude dc rss rdf"

Hth,

Manos

---------------------------------------------------------------------
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