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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to