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:
Mon, 27 Jul 2015 09:28:10 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
I was able to resolve my question, it was a matter of making the process complicated. It was just a matter of adding <xsl:when> in the process so I was able to come up with the following below:

<xsl:template match="skos:Concept">
  <xsl:for-each select="skos:prefLabel|skos:Concept" />
  <xsl:choose>
    <xsl:when test="skos:broader">
       <xsl:text>=301  \\$abroader$b</xsl:text>
	   <xsl:value-of select="skos:prefLabel[@xml:lang='en']" />
	   <xsl:text>$c</xsl:text>
	   <xsl:value-of select="./@rdf:about" />
	   <xsl:text>&#13;&#10;</xsl:text>
    </xsl:when>
    <xsl:when test="skos:narrower">
      <xsl:text>=302  \\$anarrower$b</xsl:text>
	  <xsl:value-of select="skos:prefLabel[@xml:lang='en']" />
	  <xsl:text>$c</xsl:text>
	   <xsl:value-of select="./@rdf:about" />
	   <xsl:text>&#13;&#10;</xsl:text>
    </xsl:when>

There are more data to crosswalk with my dataset, I'll just post more. Once finished with XSLT, I'll post it here. 
Thank you very much and god bless!

________________________________________________________________________

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