MetaMorph ha iniziato a parlare... ma le sue prime parole non sono esattamente quel "Mamma...?" che potreste aspettarvi da una creatura neonata. Si tratta di qualcosa di molto più complicato, ve lo riporto qui di seguito:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="p">
<p><xsl:apply-templates /></p>
</xsl:template>
<xsl:template match="b">
<b><xsl:apply-templates /></b>
</xsl:template>
<xsl:template match="i">
<i><xsl:apply-templates /></i>
</xsl:template>
<xsl:template match="u">
<u><xsl:apply-templates /></u>
</xsl:template>
<xsl:template match="strike">
<strike><xsl:apply-templates /></strike>
</xsl:template>
<xsl:template match="a">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="@href" />
</xsl:attribute>
<xsl:attribute name="target">
<xsl:value-of select="@target" />
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="@title" />
</xsl:attribute>
<xsl:value-of select="." />
</xsl:element>
</xsl:template>
<xsl:template match="link">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="@type='post'">
post.php?id=
</xsl:when>
<xsl:when test="@type='tag'">
tag.php?value=
</xsl:when>
<xsl:when test="@type='cat'">
category.php?value=
</xsl:when>
</xsl:choose>
<xsl:value-of select="@href" />
</xsl:attribute>
<xsl:value-of select="." />
</xsl:element>
</xsl:template>
<xsl:template match="img">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="@src" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="@alt" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="@alt" />
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="@title" />
</xsl:attribute>
<xsl:attribute name="width">
<xsl:value-of select="@width" />
</xsl:attribute>
<xsl:attribute name="height">
<xsl:value-of select="@height" />
</xsl:attribute>
<xsl:attribute name="style">
float:left;margin:10px
</xsl:attribute>
</xsl:element>
</xsl:template>
<xsl:template match="video">
<p style="padding:20px;background-color:#FFCCFF;text-align:center">
<xsl:if test="@src='youtube'">
<object width="425" height="350">
<xsl:element name="param">
<xsl:attribute name="name">movie</xsl:attribute>
<xsl:attribute name="value">
http://www.youtube.com/v/
<xsl:value-of select="@href" />
</xsl:attribute>
</xsl:element>
<param name="wmode" value="transparent"></param>
<xsl:element name="embed">
<xsl:attribute name="src">
http://www.youtube.com/v/
<xsl:value-of select="@href" />
</xsl:attribute>
<xsl:attribute name="type">application/x-shockwave-flash</xsl:attribute>
<xsl:attribute name="wmode">transparent</xsl:attribute>
<xsl:attribute name="width">425</xsl:attribute>
<xsl:attribute name="height">350</xsl:attribute>
</xsl:element>
</object>
</xsl:if>
<xsl:if test="@src='vgoogle'">
<xsl:element name="embed">
<xsl:attribute name="style">width:400px;height:326px</xsl:attribute>
<xsl:attribute name="id">VideoPlayback</xsl:attribute>
<xsl:attribute name="type">application/x-shockwave-flash</xsl:attribute>
<xsl:attribute name="src">
http://video.google.com/googleplayer.swf?docId=
<xsl:value-of select="@href" />
<xsl:if test="@lang">
&hl=
<xsl:value-of select="@lang" />
</xsl:if>
</xsl:attribute>
<xsl:attribute name="flashvars" />
</xsl:element>
</xsl:if>
<xsl:if test="@src='metacafe'">
<xsl:element name="embed">
<xsl:attribute name="src">
http://www.metacafe.com/fplayer/
<xsl:value-of select="@href" />
.swf
</xsl:attribute>
<xsl:attribute name="width">400</xsl:attribute>
<xsl:attribute name="height">345</xsl:attribute>
<xsl:attribute name="wmode">transparent</xsl:attribute>
<xsl:attribute name="pluginspage">http://www.macromedia.com/go/getflashplayer</xsl:attribute>
<xsl:attribute name="type">application/x-shockwave-flash</xsl:attribute>
</xsl:element>
</xsl:if>
<xsl:if test="@src='veoh'">
<xsl:element name="embed">
<xsl:attribute name="src">
http://www.veoh.com/videodetails2.swf?permalinkId=
<xsl:value-of select="@href" />
&id=anonymous&player=videodetailsembedded&videoAutoPlay=0
</xsl:attribute>
<xsl:attribute name="allowFullScreen">true</xsl:attribute>
<xsl:attribute name="width">540</xsl:attribute>
<xsl:attribute name="height">438</xsl:attribute>
<xsl:attribute name="bgcolor">#000000</xsl:attribute>
<xsl:attribute name="type">application/x-shockwave-flash</xsl:attribute>
<xsl:attribute name="pluginspage">http://www.macromedia.com/go/getflashplayer</xsl:attribute>
</xsl:element>
</xsl:if>
</p>
</xsl:template>
</xsl:stylesheet>
A mettere ancora più in apprensione una povera "mamma", la comparsa di una strana sigla sul petto, ancora indecifrata ai più: MHX...
La cosa si fa sempre più preoccupante... MetaMorph arriverà mai ad avere una sua definizione? Provateci ancora con i vostri commenti... la strada è ancora lunga...
giovedì 30 agosto 2007
Iscriviti a:
Post (Atom)