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: Namespace attributes in XSL output
Date Fri, 07 Jun 2002 12:39:55 GMT
Solved - brilliant- thanks, Stephan!

(in future I am not sure whether to RTM or ATG -
Ask The Gurus!)

>>> stephan@vern.chem.tu-berlin.de 07/06/2002 02:30:04 >>>


On Fri, 7 Jun 2002, Derek Hohls wrote:

> I'm having problems with empty namespace attributes
> being added into my output tags:
>
> A tag which is generated via a call to a named template will
> insert xmlns="" into the tag; which causes that tag to be ignored.
>
> For example, a call in a stylesheet with:
>
> <xsl:stylesheet version="1.0"
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>   xmlns:svg="http://www.w3.org/2000/svg"
>   >
>
> <xsl:call-template name="setSeriesMarker">
> ...
>
> <xsl:template name="setSeriesMarker">
> <svg:defs> ... </svg:defs>
> ...

Try this  ...

<xsl:template name="setSeriesMarker">
<defs xmlns="www.w3.org/...."> ... </defs>
 ...


>
> Results in output of:
>
> <svg:defs xmlns=""> ...  </svg:defs>
>


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

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


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.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