--- nsdl/prototypes/metadata_convert.pl 2002/05/11 20:20:32 1.2 +++ nsdl/prototypes/metadata_convert.pl 2002/05/12 16:48:18 1.5 @@ -35,21 +35,42 @@ END # Subject & Keywords # Language # Title + + # --------------- also need educational recommended fields +# http://dublincore.org/documents/2000/10/05/education-namespace/ +# dc-ed:audience +# dc-ed:standard Element +# dc-ed:conformsTo (Qualifier to the dc:relation) +# endorsement of the use of the InteractivityType, +# InteractivityLevel, and TypicalLearningTime data elements (Education Category: 5.1, 5.3, and 5.9 respectively) from the IEEE Learning +# Object Metadata (LOM) standard for P1484.12. + # (there are also other identified cross-walk strategies for 8 other metadata # standards) +# crosswalks - http://128.253.121.110/NSDLmetaWG/IntroPage.html + #http://metamanagement.comm.nsdlib.org/overview.html#NSDL #http://www.dlib.vt.edu/projects/OAi/marcxml/marcxml.html #http://www.openarchives.org/OAI/openarchivesprotocol.html # "> -# xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" -# xsi:schemaLocation="http://purl.org/dc/elements/1.1 -# http://www.openarchives.org/OAI/1.1/dc.xsd"> +my $namespace='http://ExternalFunction/'; +my $func = sub { + my $text = shift; + return uc($text); +}; + +$tr->install_function($namespace, 'plain-text', $func); + + my $NSDL_metadata1=(< - + The Cornell Law Quarterly 1915-1916 http://heinonline.org/HeinOnline/show.pl? @@ -193,7 +214,10 @@ close(OUT); open(OUT,'>tmpn2l.xsl'); print(OUT < - + @@ -204,7 +228,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> +