Premessa: la richiesta che sto per fare è decisamente complicata... ma almeno c'è più gusto così, no? :-D
Allora, ho un problemino con le trasformazioni XSLT su video e audio RealPlayer. Questo è il codice XSLT che uso:Tradotto in sintesi, grazie a questa trasformazione è possibile inserire un video clip RealPlayer con il semplice codice (su una "riscrittura" di HTML che sto facendo):Codice:<table border="0" cellpadding="0" align="center"> <tr><td> <xsl:element name="object"> <xsl:attribute name="classid">clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA</xsl:attribute> <xsl:attribute name="width"> <xsl:choose> <xsl:when test="@width"><xsl:value-of select="@width" /></xsl:when> <xsl:otherwise>320</xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:attribute name="height"> <xsl:choose> <xsl:when test="@height"><xsl:value-of select="@height" /></xsl:when> <xsl:otherwise>240</xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:element name="param"> <xsl:attribute name="name">src</xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="@src" /></xsl:attribute> </xsl:element> <param name="autostart" value="false" /> <param name="controls" value="imagewindow" /> <param name="console" value="video" /> <param name="loop" value="false" /> <xsl:element name="embed"> <xsl:attribute name="src"><xsl:value-of select="@href" /></xsl:attribute> <xsl:attribute name="width"> <xsl:choose> <xsl:when test="@width"><xsl:value-of select="@width" /></xsl:when> <xsl:otherwise>320</xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:attribute name="height"> <xsl:choose> <xsl:when test="@height"><xsl:value-of select="@height" /></xsl:when> <xsl:otherwise>240</xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:attribute name="loop">false</xsl:attribute> <xsl:attribute name="type">audio/x-pn-realaudio-plugin</xsl:attribute> <xsl:attribute name="controls">imagewindow</xsl:attribute> <xsl:attribute name="console">video</xsl:attribute> <xsl:attribute name="autostart">false</xsl:attribute> </xsl:element> </xsl:element> </td></tr> <tr><td> <xsl:element name="object"> <xsl:attribute name="classid">clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA</xsl:attribute> <xsl:attribute name="width"> <xsl:choose> <xsl:when test="@width"><xsl:value-of select="@width" /></xsl:when> <xsl:otherwise>320</xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:attribute name="height">30</xsl:attribute> <xsl:element name="param"> <xsl:attribute name="name">src</xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="@src" /></xsl:attribute> </xsl:element> <param name="autostart" value="false" /> <param name="controls" value="controlpanel" /> <param name="console" value="video" /> <param name="loop" value="false" /> <xsl:element name="embed"> <xsl:attribute name="src"><xsl:value-of select="@href" /></xsl:attribute> <xsl:attribute name="width"> <xsl:choose> <xsl:when test="@width"><xsl:value-of select="@width" /></xsl:when> <xsl:otherwise>320</xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:attribute name="height">30</xsl:attribute> <xsl:attribute name="loop">false</xsl:attribute> <xsl:attribute name="type">audio/x-pn-realaudio-plugin</xsl:attribute> <xsl:attribute name="controls">controlpanel</xsl:attribute> <xsl:attribute name="console">video</xsl:attribute> <xsl:attribute name="autostart">false</xsl:attribute> </xsl:element> </xsl:element> </td></tr> </table>Il problema che ho è che i video così caricati, sebbene l'output in codice HTML risulti corretto, non vengono riprodotti... per meglio dire il plugin di RealPlayer si lamenta di una mancanza del software necessario a riprodurre i file... application/xml (?!?!?).Codice:<video type="real" src="nome_file.ram" width="..." height="..." />
Qualcuno sa dirmi se posso risolvere il problema in qualche modo (senza che chiamiate il 118 per farmi internare, grazie...)?
Grazie a chi risponde... statemi bene...

LinkBack URL
About LinkBacks

