XML of a Citation

Jun 1, 2009 at 12:20 PM

Hi,

I'm searching a XML schema or a example XML for a citation (not the source.xml).I need the xml with all availabe tags, like b:LastAuthor, etc.

 

Greetz

csc

Coordinator
Jun 1, 2009 at 3:38 PM

There is no schema available as far as I know.

It is actually very doubtful that there is a schema considering that the input to the XSLT is a schema violation by itself. For example, a citation is deliverd as:

<b:Citation>
  ...
  <b:Source>
    ...
  </b:Source>
</b:Citation>

where the b, according to the stylesheets stands for "http://schemas.openxmlformats.org/officeDocument/2006/bibliography". If you check that schema, you will notice that a Citation element is nowhere defined. Same goes for FirstAuthor, LastAuthor, Bibliography, MinAuthors, ...

The easiest way to see what is available is to make a dump. In your stylesheet, you just "listen" for an b:Citation element, and when one arrives, you just output its entire content again as an xml tree. It looks a bit ugly in Word, but its a way to get started.

The list I can think of on top of my head:

  • FirstAuthor: indicates if this is the first citation in a group of in-text citations
  • LastAuthor: indicates if this is the last citation in a group of in-text citations
  • MinAuthors: see http://blogs.msdn.com/microsoft_office_word/archive/2009/04/29/bibliography-citations-102-building-custom-styles.aspx
  • RepeatedAuthor: see http://blogs.msdn.com/microsoft_office_word/archive/2009/04/29/bibliography-citations-102-building-custom-styles.aspx
  • NoAuthor: indicates that the author should be suppressed (\n flag)
  • NoTitle: indicates that the title should be suppressed (\t flag)
  • NoYear: indicates that the year should be suppressed (\y flag)
  • Volume: indicates the volume specific for this in-text citation (\v flag)
  • Pages: indicates the page range specific for this in-text citation (contrary to the one in the source) (\p flag)
  • PagePrefix: the prefix to show in front of the in-text citation (\f flag)
  • PageSuffix: the suffix to show at the end of the in-text citation (\s flag)
  • Source: the actual source (which can contain its own Volume and Pages)
  • Locals: localized strings. They might be of interest if you create an international stylesheet but they have serious drawbacks as sometimes different languages require slightly different wording not supported by the definitions.

On a final note, because the algorithms to decide the main author are fishy in my opinion (different styles can have different opinions about who the main author is), the usage of MinAuthors and RepeatedAuthor for in-text citations, should be considered carefully.