Hi,
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>
</xsp:element>
</xsl:template>

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" declare="declare"></object>.

Why is the declare attribute being chopped like this? Is this a bug?
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 properly
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

Reply via email to