DateStructLess.xslt

A stub of a stylesheet to convert P4  and  elements into P5 and elements (it doesn't handle children elements yet). 







        <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 &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:if test="@value"> <xsl:value-of select="@value"/></xsl:attribute> </xsl:if> <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 &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)