Hello fellow developers!
I am creating my own Bibliography XSLT for Word 2007, and I was wondering if
there was some type of XML file that defined all of the available
bibliography styles for MS Word?
Also, does anyone know how to name the XSL file that shows up in the drop
down MS Word 2007's available styles?
Thank you for your time!
Cheers,
MIS Dude
The bibliography styles used by Word 2007 can be found in the <word
2007 directory>\Bibliography\Style. Each style has its own xsl file.
So there is no one file containing everything.
Word populates the list of styles in the drop down by going over each
xsl file in that directory and sending it one or two commands. First
it sends a <b:OfficeStyleKey/>. The default Word 2007 styles reply
with a key which Word then maps to a predefined 'localized' stylename.
If Word gets an empty reply from the stylesheet, it assumes that the
style is not one of the predefined ones and sends a <b:StyleName/>. If
you create your own style, you should capture this and return a
stylename. Whatever the string is you return, it will be displayed in
the dropdown list. Example code for changing just the name in a
predefined stylesheet can be found at
http://www.codeplex.com/bibliography/Wiki/View.aspx?title=FAQ#Q8
For more information on creating your own style from scratch, you
might want to read the following blog entry:
http://blogs.msdn.com/microsoft_office_word/archive/2007/12/14/bibliography-citations-1011.aspx
Alternatively, you might want to check out BibWord (http://
www.codeplex.com/bibliography/Wiki/View.aspx?title=BibWord). It's a
little project I developed which should make the creation of new
styles (slightly) easier. You can also find a number of example styles
on the project site.
Yves