Diff for /nsdl/prototypes/metadata_convert.pl between versions 1.3 and 1.5

version 1.3, 2002/05/11 21:04:27 version 1.5, 2002/05/12 16:48:18
Line 35  END Line 35  END
 # Subject & Keywords  # Subject & Keywords
 # Language  # Language
 # Title  # Title
   
   
 # --------------- also need educational recommended fields  # --------------- 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  # (there are also other identified cross-walk strategies for 8 other metadata
 #  standards)  #  standards)
   # crosswalks - http://128.253.121.110/NSDLmetaWG/IntroPage.html
   
   
 #http://metamanagement.comm.nsdlib.org/overview.html#NSDL  #http://metamanagement.comm.nsdlib.org/overview.html#NSDL
 #http://www.dlib.vt.edu/projects/OAi/marcxml/marcxml.html  #http://www.dlib.vt.edu/projects/OAi/marcxml/marcxml.html
 #http://www.openarchives.org/OAI/openarchivesprotocol.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=(<<END);  my $NSDL_metadata1=(<<END);
 <?xml version="1.0"?>  <?xml version="1.0"?>
Line 194  close(OUT); Line 214  close(OUT);
 open(OUT,'>tmpn2l.xsl');  open(OUT,'>tmpn2l.xsl');
 print(OUT <<END);  print(OUT <<END);
 <?xml version="1.0"?>   <?xml version="1.0"?> 
 <xsl:stylesheet xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">  <xsl:stylesheet
     xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
     xmlns:external="$namespace"
   >
 <xsl:template match="/">  <xsl:template match="/">
 <loncapa>  <loncapa>
 <xsl:text>  <xsl:text>
Line 205  print(OUT <<END); Line 228  print(OUT <<END);
 </xsl:text>  </xsl:text>
 </xsl:template>  </xsl:template>
 <xsl:template match="dc:title">  <xsl:template match="dc:title">
 <title><xsl:value-of select="."/></title>  <title>
            <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>
   </title>
 <xsl:text>  <xsl:text>
 </xsl:text>  </xsl:text>
 </xsl:template>  </xsl:template>

Removed from v.1.3  
changed lines
  Added in v.1.5


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>