murray
murray

Reputation: 787

In XSLT for MODS XML to FilemakerPro conversion, how treat a mod with a parameter?

Referring to query XSLT to translate Zotero xml output to FMPXMLRESULT xml?, how in the XSLT do I refer to a mod such as:

<genre authority="marcgt"> book </genre>

(There are multiple mods beginning genre authority, each with a different parameter. So what is the syntax in the XSLT for that? I tried the following, but Filemaker says there's a syntax error.

<COL>
   <DATA>
      <xsl:value-of select="mod:genre authority=""marcgt""" />
   </DATA>
 </COL>

Upvotes: 0

Views: 221

Answers (1)

AlwaysWrong
AlwaysWrong

Reputation: 526

The select is looking for a node to pick, it seems like you are trying to point it to:

<xsl:value-of select="mod:genre[@authority='marcgt']" />

Upvotes: 2

Related Questions