--- nsdl/prototypes/metadata_convert.pl 2002/05/11 21:04:27 1.3 +++ nsdl/prototypes/metadata_convert.pl 2002/05/12 16:48:18 1.5 @@ -35,15 +35,35 @@ 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 # "> +my $namespace='http://ExternalFunction/'; +my $func = sub { + my $text = shift; + return uc($text); +}; + +$tr->install_function($namespace, 'plain-text', $func); + my $NSDL_metadata1=(< @@ -194,7 +214,10 @@ close(OUT); open(OUT,'>tmpn2l.xsl'); print(OUT < - + @@ -205,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> +