--- nsdl/prototypes/metadata_convert.pl 2002/05/11 21:04:27 1.3 +++ nsdl/prototypes/metadata_convert.pl 2002/05/11 23:22:49 1.4 @@ -45,6 +45,15 @@ END #http://www.openarchives.org/OAI/openarchivesprotocol.html # "> +my $namespace='http://ExternalFunction/'; +my $func = sub { + my $text = shift; + return uc($text); +}; + +$tr->install_function($namespace, 'plain-text', $func); + + my $NSDL_metadata1=(< tmpn2l.xsl'); print(OUT < - + @@ -205,7 +217,16 @@ print(OUT < -<xsl:value-of select="."/> + + <xsl:choose> + <xsl:when test="function-available('external:plain-text')"> + <xsl:value-of select="external:plain-text(.)"/> + </xsl:when> + <xsl:otherwise> + Function external:plain-text() is not available! + </xsl:otherwise> + </xsl:choose> +