Annotated Bibliography with XSLT?
Hi all,
I was hoping to take the RDF file that Zotero exports and create my
own annotated bibliography by mapping the bib information with the
notes.
I noticed, however, that notes are stored outside of the structure of
the bib entries and linked by an id. This implies that I'd have to use
programmatic parsing, not XSLT, to create my annotated bib.
For example, one of my sources (a bib:document) has the following
element (identified by the attribute RDF:resource as "#item:7225",
which refers to a note.
<dcterms:isReferencedBy RDF:resource="#item:7225"/>
The note, then, is identified by an RF:ID attribute with the value of
"item:7225"
<bib:Memo RDF:ID="item:7225"
RDF:value="Talks about being an independent
contractor to meet the conditions of an industry that doesn't support
long-term employment with a single employer. This article provides
some guidance for how anyone- not just a PhD - might consider
approaching the job market as a consultant." />
So -- in order to map a note to an item, I'd have to:
1. Check each item for a dcterms:isReferencedBy element.
2. Parse the item number from the RDF:resource attribute.
3. Search all bib:Memo elements for the item number, which I again
have to parse out of the RF:ID.
Can this be done in XSLT? I was hoping for a structure more like this:
<bib:document>
<bib:memo>this is memo or note text</bib:memo>
</bib:document>
Is there a particular reason that this XML structure doesn't nest
memos with their associated bib:document?
I was hoping to take the RDF file that Zotero exports and create my
own annotated bibliography by mapping the bib information with the
notes.
I noticed, however, that notes are stored outside of the structure of
the bib entries and linked by an id. This implies that I'd have to use
programmatic parsing, not XSLT, to create my annotated bib.
For example, one of my sources (a bib:document) has the following
element (identified by the attribute RDF:resource as "#item:7225",
which refers to a note.
<dcterms:isReferencedBy RDF:resource="#item:7225"/>
The note, then, is identified by an RF:ID attribute with the value of
"item:7225"
<bib:Memo RDF:ID="item:7225"
RDF:value="Talks about being an independent
contractor to meet the conditions of an industry that doesn't support
long-term employment with a single employer. This article provides
some guidance for how anyone- not just a PhD - might consider
approaching the job market as a consultant." />
So -- in order to map a note to an item, I'd have to:
1. Check each item for a dcterms:isReferencedBy element.
2. Parse the item number from the RDF:resource attribute.
3. Search all bib:Memo elements for the item number, which I again
have to parse out of the RF:ID.
Can this be done in XSLT? I was hoping for a structure more like this:
<bib:document>
<bib:memo>this is memo or note text</bib:memo>
</bib:document>
Is there a particular reason that this XML structure doesn't nest
memos with their associated bib:document?
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage