我需要将 Zotero 数据库中的项目导入 FileMaker Pro。最明显的方法是从 Zotero 导出为 xml,将该 xml 转换为 FMPXMLRESULT xml 格式,然后导入 FileMaker Pro。
我是处理翻译 xml 格式的新手。
有没有人有 xslt 可以做到这一点,或者为我提供一些针对这两种 xml 格式的建议(不仅仅是一般的 xslt/xml 参考)?
Zotero xml 输出采用国会图书馆 MODS 格式:http ://www.loc.gov/standards/mods/ 。
FileMaker Pro FMPXMLRESULT xml 格式在此处描述:http ://www.filemaker.com/help/html/import_export.16.30.html 。
下面是 Zotero MODS 导出的示例。(抱歉,在这篇文章中复制文件以形成代码块时,一些缩进丢失了。这是实际文件的 Dropbox 链接:https ://www.dropbox.com/s/otrwr7xk0uwmff7/From_Zotero_MODS.xml )
<?xml version="1.0"?>
<modsCollection xsi:schemaLocation="http://www.loc.gov/mods/v3
http://www.loc.gov/standards/mods/v3/mods-3-2.xsd" xmlns="http://www.loc.gov/mods/v3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<mods>
<titleInfo>
<title>Roberto Giobbi's Card college. Volume 1</title>
</titleInfo>
<typeOfResource>text</typeOfResource>
<genre authority="local">book</genre>
<genre authority="marcgt">book</genre>
<name type="personal">
<namePart type="family">Giobbi</namePart>
<namePart type="given">Roberto</namePart>
<role>
<roleTerm type="code" authority="marcrelator">aut</roleTerm>
</role>
</name>
<originInfo>
<place>
<placeTerm type="text">Seattle, Wash.</placeTerm>
</place>
<publisher>Hermetic Press</publisher>
<copyrightDate>1996</copyrightDate>
<issuance>monographic</issuance>
</originInfo>
<identifier type="isbn">0945296185</identifier>
<subject>
<topic>Card tricks</topic>
</subject>
<note>External Resources: Cite This Item Search for versions with same title and author
| Advanced options ...
Uniform Title: Grosse kartenschule. Band 1. English
Edition: Rev. 2nd ed. ; English language ed.
Language: English
Note(s): Includes bibliographical references (p. [245]-247) and index.
Other Titles: Card college
Responsibility: illustrated by Barbara Giobbi-Ebnöther ; translated from the German by
Richard Hatch.
Vendor Info: Baker & Taylor YBP Library Services (BKTY YANK) 32.00 Status:
active Note: B&T Title: Card College
Entry: 19960709
Update: 20091103
Provider: OCLC</note>
</mods>
<mods>
<titleInfo>
<title>Book of magic.</title>
</titleInfo>
<typeOfResource>text</typeOfResource>
<genre authority="local">book</genre>
<genre authority="marcgt">book</genre>
<name type="personal">
<namePart type="family">Warlock</namePart>
<namePart type="given">Peter</namePart>
<role>
<roleTerm type="code" authority="marcrelator">aut</roleTerm>
</role>
</name>
<originInfo>
<publisher>London New York, Arco</publisher>
<copyrightDate>1956</copyrightDate>
<issuance>monographic</issuance>
</originInfo>
<subject>
<topic>Magic tricks</topic>
</subject>
<note>External Resources: Cite This Item Search for versions with same title and author
| Advanced options ...
Edition: [1st ed.]
Language: English
Class Descriptors: LC: GV1547; Dewey: 793.8
Entry: 19750729
Update: 20120116
Provider: OCLC</note>
</mods>
<mods>
<titleInfo>
<title>The amateur magician's handbook,</title>
</titleInfo>
<typeOfResource>text</typeOfResource>
<genre authority="local">book</genre>
<genre authority="marcgt">book</genre>
<name type="personal">
<namePart type="family">Hay, Henry</namePart>
<namePart type="given"/>
<role>
<roleTerm type="code" authority="marcrelator">aut</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="family">Mussey</namePart>
<namePart type="given">June Barrows</namePart>
<role>
<roleTerm type="code" authority="marcrelator">aut</roleTerm>
</role>
</name>
<originInfo>
<publisher>New York, Crowell</publisher>
<copyrightDate>1972</copyrightDate>
<issuance>monographic</issuance>
</originInfo>
<identifier type="isbn">0690057113</identifier>
<subject>
<topic>Magic tricks</topic>
</subject>
<note>External Resources: Cite This Item Search for versions with same title and author
| Advanced options ...
Edition: 3d ed., rev. and expanded.
Language: English
Note(s): Bibliography: p. 365-373.
Class Descriptors: LC: GV1547; Dewey: 793.8
Responsibility: by Henry Hay. Photos. by Audrey Alley.
Vendor Info: Baker and Taylor (BTCP)
Entry: 19720814
Update: 20080829
Provider: OCLC</note>
</mods>
</modsCollection>