cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Corin Moss" <>
Subject RE: attribute declaration problem.....
Date Mon, 08 Mar 2004 01:14:39 GMT


Out of curiosity more than anything else - why not use the xsl element
and attribute? Is there a specific reason not to?  Does this behaviour
still happen when using xsl:element?


	-----Original Message-----
	From: beyaNet Consultancy []
	Sent: Monday, 8 March 2004 2:12 p.m.
	Subject: xsp:attribute declaration problem.....

	I am having a strange problem defining the declare attribute of
the OBJECT tag. My code is so:

	<xsl:template match="artistDetails:currentTrack">
	<xsp:element name="object">
	<xsp:attribute name="data">music/Borderline.mp3</xsp:attribute>
	<xsp:attribute name="type">audio/mpeg</xsp:attribute>
	<xsp:attribute name="declare">declare</xsp:attribute>

	When the page is rendered as HTML, and the source viewed, the
object tag reads as:

	<object data="music/Borderline.mp3" type="audio/mpeg"
declare></object>. This is incorrect. It should read:

	<object data="music/Borderline.mp3" type="audio/mpeg"

	Why is the declare attribute being chopped like this? Is this a
	It seems that if you define an attribute and assign a value
which has the same name, the attribute value pair is then not rendered
	Does anyone have a solution for this?

	What I am expecting to happen here is for the mp3 file to be
download but not to start playing until some form of user interaction
takes play, i.e. clicking an ahref link for example. This is not
happening as the declare attribute is not being properly declared !!

	many thanks in advance

CAUTION: This e-mail and any attachment(s) contains information
that is intended to be read only by the named recipient(s). It
may contain information that is confidential, proprietary or the
subject of legal privilege. This information is not to be used by
any other person and/or organisation. If you are not the intended
recipient, please advise us immediately and delete this e-mail
from your system. Do not use any information contained in it.

For more information on the Television New Zealand Group, visit
us online at
View raw message