Created
July 29, 2015 14:21
-
-
Save ruthtillman/97aa5d18dd12c7d9b61e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <xsl:choose> | |
| <xsl:when test="self::dc:date and text()[matches(.,'^\d{4}\-\d{2}-\d{2}')]"> | |
| <xsl:text>^^xsd:date</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="self::dc:date and text()[matches(.,'^\d{4}\-\d{2}')]"> | |
| <xsl:text>^^xsd:gYearMonth</xsl:text> | |
| </xsl:when> | |
| <xsl:when test="self::dc:date and text()[matches(.,'^\d{4}')]"> | |
| <xsl:text>^^xsd:gYear</xsl:text> | |
| </xsl:when> | |
| </xsl:choose> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment