Initial import of the DS Guide

git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@281 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
astro 2006-05-12 00:06:39 +00:00
parent b1d18148d4
commit ff619b2563
5 changed files with 333 additions and 0 deletions

View File

@ -0,0 +1,12 @@
GUIDE_XML=guide.xml
GUIDE_XSL=guide.xsl
SCHEDULE_XSL=schedule.xsl
SCHEDULE_XML=../../../www/datenspuren/fahrplan/schedule.de.xml
C3D2WEB_XSL=c3d2web.xsl
# TODO: C3D2WEB_XML
DEPS=$(GUIDE_XML) $(GUIDE_XSL) $(SCHEDULE_XSL) $(SCHEDULE_XML) $(C3D2WEB_XSL)
guide.pdf: $(DEPS)
/home/stephan/programs/fop/fop -xml $(GUIDE_XML) -xsl $(GUIDE_XSL) -pdf $@
guide-xep.pdf: $(DEPS)
~/Java/XEP/xep -xml $(GUIDE_XML) -xsl $(GUIDE_XSL) -pdf $@

View File

@ -0,0 +1,21 @@
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match='pull-c3d2web/page/p'>
<xsl:choose>
<xsl:when test='@class="title"'>
<fo:block text-align='center' padding='2mm 0mm'>
<xsl:apply-templates/>
</fo:block>
</xsl:when>
<xsl:otherwise>
<fo:block font-family='serif' text-align='justify' padding='2mm 0mm'>
<xsl:apply-templates/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

View File

@ -0,0 +1,78 @@
<?xml version="1.0"?>
<guide>
<title-page>
<title>Datenspuren</title>
<title>2006</title>
<space height='50mm'/>
<note>13. &amp; 14. Mai</note>
<space height='20mm'/>
<note>Scheune</note>
<note>Dresden</note>
</title-page>
<page-sequence>
<section title='Inhalt'>
<table-of-contents/>
</section>
<section title='CFP'>
<pull-c3d2web file='../../../content/datenspuren/cfp.xml'/>
</section>
<section title='Index'>
<pull-c3d2web file='../../../content/datenspuren/index.xml'/>
</section>
<section title='Information'>
<pull-c3d2web file='../../../content/datenspuren/info.xml'/>
</section>
<section title='Mitschnitte'>
<pull-c3d2web file='../../../content/datenspuren/mitschnitte.xml'/>
</section>
<section title='Netzwerk'>
<pull-c3d2web file='../../../content/datenspuren/netzwerk.xml'/>
</section>
<section title='Party'>
<pull-c3d2web file='../../../content/datenspuren/party.xml'/>
</section>
<section title='Presse'>
<pull-c3d2web file='../../../content/datenspuren/presse.xml'/>
</section>
<section title='Veranstaltung'>
<pull-c3d2web file='../../../content/datenspuren/veranstaltungsort.xml'/>
</section>
<section title='Vorträge'>
<pull-c3d2web file='../../public_html/c3d2-web/trunk/content/datenspuren/vortraege.xml'/>
</section>
<section title='Conglomerate: XML For Everyone'>
<p>
Conglomerate aims to be an XML editor that everyone can use.
</p>
<p>
In particular, our primary goal is to create the ultimate editor for DocBook and similar formats.
</p>
<p>
It aims to hide the jargon and complexity of XML and present the information in your documents in a way that makes sense.
</p>
<p>
You ought to be able to create documents that are organised in a way that makes sense for you, rather than what your word processor wants. For instance, if you are writing a recipe book you'll want to think about "Ingredients" and "Preparation Instructions" rather than "Sections" and "Lists". You can then use your document to generate high-quality output in a variety of formats (such as HTML pages, PDF files, traditional word-processor files etc). You may also be able to do things that are almost impossible in a traditional word-processor, such as "Give me a list of all recipes that serve 8 people that are safe for those with an allergy to nuts".
</p>
<p>
Read the introduction to the conglomerate system and join the mailing lists if you want to know more.
</p>
<p>
We are working towards our first stable release. You can download the current version and used it for simple editing as it is, although there are some known bugs.
</p>
</section>
<section title='Programm'>
<pull-schedule file='../../../www/datenspuren/fahrplan/schedule.de.xml'/>
</section>
</page-sequence>
</guide>

View File

@ -0,0 +1,153 @@
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:include href='schedule.xsl'/>
<xsl:template match="/guide">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="TitlePage">
<fo:region-body display-align="center"/>
<!--fo:region-after
extent="0.8in"
display-align="before"/-->
</fo:simple-page-master>
<fo:simple-page-master master-name="A4"
page-width="210mm" page-height="297mm"
margin-top="15mm" margin-bottom="15mm"
margin-left="15mm" margin-right="15mm">
<fo:region-body margin-top="10mm" column-count="2" column-gap="10mm"/>
<fo:region-before extent="10mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<xsl:apply-templates/>
</fo:root>
</xsl:template>
<xsl:template match='title-page'>
<fo:page-sequence master-reference="TitlePage">
<fo:flow flow-name="xsl-region-body">
<xsl:apply-templates/>
</fo:flow>
</fo:page-sequence>
</xsl:template>
<xsl:template match='title-page/title'>
<fo:block font-size='48pt' font-weight='bold' text-align='center'>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match='title-page/space'>
<fo:block>
<xsl:attribute name='padding'><xsl:value-of select='@height'/> 0mm 0mm 0mm</xsl:attribute>
</fo:block>
</xsl:template>
<xsl:template match='title-page/note'>
<fo:block font-size='24pt' text-align='center'>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match='page-sequence'>
<fo:page-sequence master-reference="A4">
<fo:static-content flow-name="xsl-region-before">
<fo:list-block provisional-distance-between-starts="4.5in"
provisional-label-separation="0pt"
font-size="11pt" font-family="Times">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block text-align='start' font-family="serif" font-size="14pt" font-weight="bold" space-after="24pt">
<xsl:value-of select='conference/title'/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block text-align="end"
font-family='serif'>
<fo:page-number/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<xsl:apply-templates/>
</fo:flow>
</fo:page-sequence>
</xsl:template>
<!-- TOC -->
<xsl:template match='table-of-contents'>
<xsl:for-each select="//section">
<fo:list-block>
<fo:list-item>
<fo:list-item-label>
<fo:block font-family="serif" text-align='left'>
<xsl:value-of select="@title"/>
</fo:block>
</fo:list-item-label>
<!--fo:leader leader-pattern="dots"/-->
<fo:list-item-body>
<fo:block padding='0mm 0mm' font-family="serif" text-align='right'>
<fo:page-number-citation ref-id="{generate-id()}"/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</xsl:for-each>
</xsl:template>
<!-- For guide.xml -->
<xsl:template match='section'>
<fo:block padding='5mm 5mm'>
<fo:block font-size='18pt' font-weight='bold' font-family='serif' text-align='center'
border-top-style='solid' border-bottom-style='solid'
border-top-color='black' border-bottom-color='black'
border-top-width='0.2mm' border-bottom-width='0.2mm'
padding='3mm 5mm'
keep-together.within-column="always" keep-with-next.within-column="always"
id="{generate-id()}">
<xsl:value-of select='@title'/>
</fo:block>
</fo:block>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match='p'>
<fo:block font-family='serif' text-align='justify' padding='2mm 0mm'>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<!-- For schedule.xsl -->
<xsl:template match='pull-schedule'>
<xsl:for-each select='document(@file)'>
<xsl:apply-templates/>
</xsl:for-each>
</xsl:template>
<!-- For c3d2web.xsl -->
<xsl:template match='pull-c3d2web'>
<xsl:for-each select='document(@file)'>
<xsl:apply-templates/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

View File

@ -0,0 +1,69 @@
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="pull-schedule/schedule">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="pull-schedule/schedule/conference">
</xsl:template>
<xsl:template match='pull-schedule/schedule/day/room'>
<fo:block padding='10mm 2mm' font-size='14pt' font-family='serif' text-align='center'
keep-together.within-column="always" keep-with-next.within-column="always">
Tag <xsl:value-of select='../@index'/>, <xsl:value-of select='@name'/>
</fo:block>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match='pull-schedule/schedule/day/room/event'>
<fo:block font-size='14pt' padding='1mm'
border-top-style='solid' border-bottom-style='solid'
border-top-color='black' border-bottom-color='black'
border-top-width='0.2mm' border-bottom-width='0.2mm'
keep-together.within-column="always" keep-with-next.within-column="always">
<fo:inline font-weight='bold'>
<xsl:value-of select='title'/>
</fo:inline>
(<xsl:value-of select='start'/>+<xsl:value-of select='duration'/>)
</fo:block>
<fo:block font-style='italic' padding='2mm 0mm 0mm'
keep-together.within-column="always" keep-with-next.within-column="always">
<xsl:value-of select='subtitle'/>
</fo:block>
<fo:block font-style='italic' padding='2mm 0mm 0mm'
keep-together.within-column="always" keep-with-next.within-column="always">
<xsl:for-each select='person'>
<xsl:if test='position() &gt; 1'>, </xsl:if>
<xsl:value-of select='.'/>
</xsl:for-each>
</fo:block>
<xsl:if test='string-length(abstract) &gt; 1'>
<fo:block font-size='10pt' font-weight='bold' padding='5mm 0mm 2mm 2mm'
keep-together.within-column="always" keep-with-next.within-column="always">
Abstract
</fo:block>
<fo:block font-family='serif' text-align='justify'>
<xsl:value-of select='abstract'/>
</fo:block>
</xsl:if>
<xsl:if test='string-length(description) &gt; 1'>
<fo:block font-size='10pt' font-weight='bold' padding='5mm 0mm 2mm 2mm'
keep-together.within-column="always" keep-with-next.within-column="always">
Beschreibung
</fo:block>
<fo:block font-family='serif' text-align='justify'>
<xsl:value-of select='description'/>
</fo:block>
</xsl:if>
<fo:block padding='3mm 0mm'>
</fo:block>
</xsl:template>
</xsl:stylesheet>