Skip to content

Commit

Permalink
XML references
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgautheron committed Nov 17, 2015
1 parent 795f909 commit a0b883d
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/timeline/compile.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ function strip_decl($str)
$files[0] = strip_decl(file_get_contents("data/events.xml"));
$files[1] = strip_decl(file_get_contents("data/contents.xml"));
$files[2] = strip_decl(file_get_contents("data/ressources.xml"));
$files[3] = strip_decl(file_get_contents("data/references.xml"));

This comment has been minimized.

Copy link
@ScalaWilliam

ScalaWilliam Nov 20, 2015

Should be able to pass in parameters into stylesheet - and refer to these files via those parameter values.

This comment has been minimized.

Copy link
@lucasgautheron

lucasgautheron Nov 20, 2015

Author Owner

you're right. opened an issue based on your comment #4


file_put_contents('data/cache', "<?xml version=\"1.0\" encoding=\"UTF-8\"?><root>{$files[0]}{$files[1]}{$files[2]}</root>");
file_put_contents('data/cache', "<?xml version=\"1.0\" encoding=\"UTF-8\"?><root>{$files[0]}{$files[1]}{$files[2]}{$files[3]}</root>");

$start_time = microtime(true);
exec('saxonb-xslt -s:data/cache -xsl:layout.xsl -o:output/index.html -ext:on');
Expand Down
18 changes: 18 additions & 0 deletions www/timeline/data/references.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<references>
<reference id="1">
<title>Sur l'électrodynamique des corps en mouvement</title>
<author>Albert Einstein</author>
<text>Traduction anglais de la publication originale d'Einstein sur sa théorie de la Relativité Restreinte.</text>
<date>1905</date>
<file>einstein_1905.pdf</file>
</reference>

<reference id="2">
<title>The radial velocity of the Andromeda Nebula</title>
<author>Vesto Slipher</author>
<text>Publication de V. Slipher sur sa mesure par effet doppler de la vitesse radiale d'Andromède.</text>
<date>1912</date>
<file>slipher_1905.pdf</file>
</reference>
</references>
Binary file not shown.
Binary file added www/timeline/references/cepheides_eddington.pdf
Binary file not shown.
Binary file added www/timeline/references/cepheides_leavitt.pdf
Binary file not shown.
Binary file added www/timeline/references/einstein_1905.pdf
Binary file not shown.
Binary file added www/timeline/references/friedmann_1922.pdf
Binary file not shown.
Binary file added www/timeline/references/lemaitre_1927.pdf
Binary file not shown.
Binary file not shown.
Binary file added www/timeline/references/slipher_1912.pdf
Binary file not shown.

0 comments on commit a0b883d

Please sign in to comment.