Test bibliographic references so many Michaƫl Meyer DHARMA Paris DHARMAbase
Missing bib:prefix

The bib: prefix is mandatory in theory, but we still deal properly with @target that don't have it, so the following produce the same result:

Bibliographic pointers which point to an entry within the div[@type='bibliography']

Bibliographic references with a non-empty bib pointer

If the ptr or ref is non-empty, we display its contents instead of the usual author+year. But we only do that if @rend="default" viz. with no @rend: hello hello hello hello hello hello hello hello hello hello hello hello

References to the project-wide bibliography

References to an entry that is present in the project-wide bibliography but that is not present in the div[@type='bibliography']. Links should point to the project-wide bibliography:

Invalid links

Bibliographic pointers with an empty @target. All the following should produce the same thing:

Reference to an entry that does not exist in our bibliography:

Reference to an entry with an unsupported item type:

Use of bibliographic units and trailing note

Single value: X 33 X

Two values: X 33 33 X

More values: X 33 33 33 X

With a non-empty ref: Xhello 33 X

All @unit, singular: X 33 33 33 33 33 33 33 33 33 33 33 33 33 33 X

All @unit, plural: X 33-34 33-34 33-34 33-34 33-34 33-34 33-34 33-34 33-34 33-34 33-34 33-34 33-34 33-34 X

With a note: X Hello world.> X

With both citedRangeUnit and note: X 33-34 Hello world. X