问题
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