XSLT Bibliography Style: Identify if a source has been Cited?

M

MIS Dude

Hello fellow programmers!

I was wondering if anyone knew how to identify if a source has been cited in
a Word 2007 document via XSLT as I am trying to make it's appearance
different upon the citation not being cited.

Thank you for your help!

Very best,

MIS Dude
 
P

p0

Hello fellow programmers!

I was wondering if anyone knew how to identify if a source has been cited in
a Word 2007 document via XSLT as I am trying to make it's appearance
different upon the citation not being cited.

Thank you for your help!

Very best,

MIS Dude

If you are talking about the Word citation 'engine' then you can't
directly. Word can only create a limited set of nodes to send to the
style engine and the only node containing multiple sources is the
bibliography node which contains them all and looks like this:

<b:Bibliography>
<!-- Bunch of localization info -->
<b:Source>...</b:Source>
<b:Source>...</b:Source>
<b:Source>...</b:Source>
</b:Bibliography>

There is no field telling which ones are cited and which ones aren't.
You should remove the uncited sources from the source manager. They
are easily identified as they have no check mark next to them.

If you are creative, you can use VBA to achieve what you want. All
used sources have their Cited property set to true. You can check out
the false ones and add an extra field to them (<b:Cited>false</
b:Cited>). The extra field will than be send along when you send a
b:Bibliography node. All you would have to do is check in your
stylesheet if there is a b:Cited element.

Note that you can't directly add fields to sources, but you can easily
remove uncited sources from the bibliography (you can't do it with
cited ones), and then readd them with the new field incorporated.

Yves
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top