cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject Re: omit namespace declarations
Date Thu, 08 Jul 2004 07:04:24 GMT
markus

please look through the mail archives; this one was
answered just recently!

i guess someone needs to add this to the FAQ in the WIKI?!

derek

>>> markus.reis@researchstudio.at 2004/07/08 09:00:36 AM >>>
hi,


i am trying to include my own smil-like xml file/template via cinclude

into a xsp page and perform some transformation steps (e.g. replacing 
some tokens) in order to get a valid smil output ...
... everything works fine ...
.... except that the <smil> element in the output smil file contains 
(besides the correct default namespace declaration for SMIL2.0 => 
xmlns="http://www.w3.org/2001/SMIL20/Language") various additional 
namespace declarations that are not used/necessary for this smil 
document (e.g.: <smil xmlns:xsp="http://apache.org/xsp" 
xmlns="http://www.w3.org/2001/SMIL20/Language" 
xmlns:cinclude="http://apache.org/cocoon/include/1.0" 
xmlns:xsp-request="http://apache.org/xsp/request/2.0" >).

is there a way to exclude these additional (and unused) namespace 
declarations in the output (smil) document (i already tried several 
things like the exclude-result-prefixes attribute for the
xsl:stylesheet 
element, but nothing seemed to work) ?

is there a way to reorder those namespace declarations (e.g. to <smil 
xmlns="http://www.w3.org/2001/SMIL20/Language" 
xmlns:xsp="http://apache.org/xsp" 
xmlns:cinclude="http://apache.org/cocoon/include/1.0" 
xmlns:xsp-request="http://apache.org/xsp/request/2.0">)  so that the 
default namespace declaration comes first ?

the only way i see to solve the problem is to write a new 
'SMILSerializer' class that extends the built-in XMLSerializer by 
omitting those namespace declarations; i hope there is a better/simpler

way to deal with this problem ....

the problem with those additional namespace declarations is that 
realplayer cannot properly play the (output) smil file (if the default

namespace declaration does not occurr before the first additional 
namespace declarations)

i am using cocoon 2.1.3


thanks for your advice
kind regards
markus


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


-- 
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message