DateStructLess.xslt

A stylesheet to convert P4  and  elements into P5 and elements. The version of P5 converted to is the one in the trunk of the Sourceforge subversion repository as of 2006-05-25. It is very likely to change soon. 







          <xsl:for-each select="@key|@reg|@type|@full"> <xsl:message> <xsl:text>WARNING: </xsl:text> <xsl:value-of select="name(.)"/> <xsl:text>="</xsl:text>         <xsl:value-of select="normalize-space(current)"/>          <xsl:text>" attribute of &amp;lt;dateStruct> element is being dropped!</xsl:text> </xsl:message> </xsl:for-each> <xsl:apply-templates select="./*|./text|./comment|./processing-instruction"/> </xsl:element> </xsl:template>

<xsl:template match="timeStruct"> <xsl:element name="time"> <xsl:apply-templates select="@id|@xml:id|@n|@lang|@xml:lang|@rend"/> <xsl:apply-templates select="@value"/> <xsl:for-each select="@key|@reg|@zone|@type|@full"> <xsl:message> <xsl:text>WARNING: </xsl:text> <xsl:value-of select="name(.)"/> <xsl:text>="</xsl:text>         <xsl:value-of select="normalize-space(.)"/>          <xsl:text>" attribute of &amp;lt;timeStruct> element is being dropped!</xsl:text> </xsl:message> </xsl:for-each> <xsl:apply-templates select="./*|./text|./comment|./processing-instruction"/> </xsl:element> </xsl:template> </xsl:stylesheet>

Syd 07:47, 26 May 2006 (BST)