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

放肆的年华 提交于 2019-12-25 01:55:17

问题


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>

回答1:


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']" />


来源:https://stackoverflow.com/questions/15648696/in-xslt-for-mods-xml-to-filemakerpro-conversion-how-treat-a-mod-with-a-paramete

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!