MARCEDIT-L Archives

July 2015

MARCEDIT-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Eugene Espinoza <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Thu, 30 Jul 2015 05:34:06 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (70 lines)
This is what I've been working on:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:skosxl="http://www.w3.org/2008/05/skos-xl#"
xmlns:marc="http://www.loc.gov/MARC21/slim"
xmlns:ns0="http://art.uniroma2.it/ontologies/vocbench#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:ns1="http://art.uniroma2.it/ontologies/vocbench#"
xmlns:void="http://rdfs.org/ns/void#">
<xsl:output method="text" omit-xml-declaration="yes" encoding="UTF-8" indent="no" />

<!--<xsl:key name="concepts-by-about" match="skos:Concept/ns0:isUsedAs" use="@rdf:about" />-->

<xsl:key name="concepts-by-about" match="skos:Concept/ns0:isUsedas" use="@rdf:resource" />

<xsl:template match="root">
   <xsl:for-each select="rdf:RDF">
	<xsl:text>START HERE</xsl:text>
	<xsl:text>&#13;&#10;</xsl:text>
	<xsl:text>=LDR  00000nam  2200000Ia 4500</xsl:text>
	<xsl:text>&#13;&#10;</xsl:text>
	<xsl:apply-templates select="skos:Concept" />
	<xsl:text>&#13;&#10;</xsl:text>
<!-- <xsl:apply-templates select="skos:Concept/ns0:isUsedAs" /> 
	<xsl:text>&#13;&#10;</xsl:text>  -->
<!--	<xsl:apply-templates select="//ns0:isUsedAs" />
	<xsl:text>&#13;&#10;</xsl:text> -->
	</xsl:for-each>
</xsl:template>
<!--        
<xsl:template match="skos:Concept/ns0:isUsedAs[key('concepts-by-about', @rdf:resource)]">    <xsl:text>=305 \\$aisUsedBy$b</xsl:text>    
    <xsl:value-of select="key('concepts-by-about', @rdf:resource)/skos:prefLabel[@xml:lang='en']" />        
        </xsl:template>

        <xsl:template match="text()" /> -->			
	<!--	<xsl:template match="//ns0:isUsedAs[key('concepts-by-about', @rdf:resource)]">        
    =305 \\$aisUsedBy$b<xsl:value-of select="key('concepts-by-about', @rdf:resource)/skos:prefLabel[@xml:lang='en']" />        
        </xsl:template> -->
		
		<xsl:template match="skos:Concept">
		 <xsl:for-each select="skos:Concept[key('concepts-by-about',@rdf:about)]" />
		 <xsl:text>=305 \\$aisUsedBy$b</xsl:text>    
    <xsl:value-of select="skos:Concept[key('concepts-by-about', @rdf:about)]/skos:prefLabel[@xml:lang='en']" />  
	
        </xsl:template>

       <xsl:template match="text()" /> 		
		
</xsl:stylesheet>


With this, I'm getting the following:
START HERE
=LDR  00000nam  2200000Ia 4500
=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b
START HERE
=LDR  00000nam  2200000Ia 4500
=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b=305 \\$aisUsedBy$b

I feel I'm still missing something but I can't figure out yet. Cheers!

________________________________________________________________________

This message comes to you via MARCEDIT-L, a Listserv(R) list for technical and instructional support in MarcEdit.  If you wish to communicate directly with the list owners, write to [log in to unmask] To unsubscribe, send a message "SIGNOFF MARCEDIT-L" to [log in to unmask]

ATOM RSS1 RSS2