tests/ 0000775 0000764 0000764 00000000000 11111521151 011145 5 ustar Reset Reset tests/Makefile 0000644 0000764 0000764 00000003462 10571531010 012614 0 ustar Reset Reset include ../../buildtools/Makefile.incl
STYLE=tables
NOFRAMESTYLE=../xsl/html/$(STYLE).xsl
FRAMESTYLE=../xsl/html/frames.xsl
FOSTYLE=../xsl/fo/plain.xsl
VARS=chunker.output.doctype-system=1 draft.mode="no"
FORMATTER=fop
FORMATTER_OPTS=-q
BROWSER=
MULTIFRAME=0
FRAMES=0
OVERLAY=1
TIDY=0
XML_FILES=dbgentext.xml dbhtml-dir.xml minimal.xml test-full.xml test.xml testcust.xml testfull.xml tr-862918.xml
PDF_FILES = $(foreach file,$(basename $(XML_FILES)),$(file).pdf)
HTML_FILES = $(foreach file,$(basename $(XML_FILES)),$(file).html)
ifeq ($(FRAMES),0)
HTMLSTYLE=$(NOFRAMESTYLE)
else
HTMLSTYLE=$(FRAMESTYLE)
endif
ifeq ($(BROWSER),)
PARAMS=$(VARS) multiframe=$(MULTIFRAME) overlay=$(OVERLAY)
else
PARAMS=$(VARS) $(BROWSER)=1 multiframe=$(MULTIFRAME) overlay=$(OVERLAY)
endif
all: $(HTML_FILES) tidy $(PDF_FILES)
# @echo Select a target
tidy:
ifeq ($(TIDY),1)
for i in *.html; do \
if [ "$$i" != "ns4toc.html" ] ; then \
tidy -iq -latin0 -mn $$i; \
fi \
done
endif
%.html: %.xml
$(XJPARSE) $<
$(XSLT) $< $(HTMLSTYLE) - $(PARAMS)
touch $@
%.fo : %.xml
ifeq ($(FORMATTER),tex)
$(XSLT) $< $(FOSTYLE) $(FORMATTER_OPTS) $@ passivetex.extensions=1 $(VARS)
else
ifeq ($(FORMATTER),fop)
$(XSLT) $< $(FOSTYLE) -q $(FORMATTER_OPTS) $@ fop.extensions=1 $(VARS)
else
$(XSLT) $< $(FOSTYLE) $(FORMATTER_OPTS) $@ $(VARS)
endif
endif
%.pdf : %.fo
ifeq ($(FORMATTER),tex)
pdftex "&pdfxmltex" $<
@if [ `grep Rerun $(basename $@).log | wc -l` -gt 0 ]; then \
pdftex "&pdfxmltex" $< ; \
fi
@if [ `grep Rerun $(basename $@).log | wc -l` -gt 0 ]; then \
pdftex "&pdfxmltex" $< ; \
fi
else
ifeq ($(FORMATTER),fop)
fop $< $@
else
ifeq ($(FORMATTER),xep)
xep $<
else
echo How would you like me to make the PDF file?
endif
endif
endif
clean:
rm -f *.html *.fo *.pdf *.ps
rm -f *.log *.aux *.out
rm -f dbhtml-dir-test/*.html
tests/testcust.xml 0000644 0000764 0000764 00000000677 07613774016 013603 0 ustar Reset Reset
Test Slides Title
Test Slides Title
...
Test Slides Title
...
this is a screen
tests/test.xml 0000644 0000764 0000764 00000005130 07613774016 012671 0 ustar Reset Reset
Test Slides Title That's Really Really Long and Would Never Really Be Used Exactly Like This
2001Norman Walsh
Welcome the audience
Foilgroup 1
Introduce the foilgroup
Test Slides Title 1
Tell a funny joke. Remember, I said a funny one.
...
Test Slides Title 2
...
this is a screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
this is a long screen
Foilgroup 2
Test Slides Title 1
...This is a footnote.
Test Slides Title 2
...
this is a screen
tests/dbhtml-dir.xml 0000644 0000764 0000764 00000015142 10233722777 013743 0 ustar Reset Reset
Supporting Localized Generated Text
Generated Text
NormanWalsh
Sunday, 08 Apr 2001
XSLTUK-01
08 Apr - 09 Apr 2001
Keble College, Oxford, UK
1
Version TEST
2001
Sun Microsystems, Inc.
Introduction
Say something pithy in the introduction
This is the introductory slide
The Problem
This is on the foilgroup slide.
Remember to describe the use-caess
Generated Text
Semantic markup often omits text that can be generated
automatically
Different contexts require different generated text,
naturally
Generated text is locale-specific
An Example
An obvious, common example is chapter title markup. Consider:
<chapter label="3"><title>Some Title</title> ...
The title page for a chapter varies by location:
English:
Chapter 3. Some Title
French:
Chapitre 3. Some Title
A Solution
The Old Solution
Replace this
]]>
]]> ]]>
]]>
with this
]]>
Chapter
]]>]]>
]]>]]>
]]>
Generated from Localization Data
L10N Data
Where the generated text for words like Chapter
is taken from an independently maintained lookup table:
...
...]]>
Problems
Single-word localization (doesn't support Japanese)
Hard-coded presentation elements (number and title)
Hard-coded presentation order (gentext, number, title)
Hard-coded number format
A Better Solution
Use Markup Templates
Use a lookup function to determine the markup template in addition
to the keywords. For example, the markup template
lookup
table for a chapter title looks something like this:
LocalizationTemplate Returned
EnglishChapter %n. %t
FrenchChapitre %n. %t
The markers, %n, %t, and
%s (not shown) are replaced by the lable, title, and
subtitle of the component, respectively.
The New
Solution
Find the template and fill it in:
]]>
Generated from Localization Data
L10N Data
In order to make this work, the localization data is extended:
...
]]>
]]>]]>
]]>]]>
]]>
Resources
Resources
, the
DocBook Home Page.
, the
stylesheets and related document types (including the slides layer that
was used to produce this presentation.)
Mailing lists: docbook@lists.oasis-open.org,
for questions about DocBook; docbook-apps@lists.oasis-open.org,
for questions about DocBook applications, stylesheets, and other tool-related
queries.
tests/testfull.xml 0000644 0000764 0000764 00000000675 07613774016 013565 0 ustar Reset Reset
Test Slides Title
Test Slides Title
...
Test Slides Title
...
this is a screen
tests/dbhtml-dir-test/ 0000755 0000764 0000764 00000000000 11111521153 014150 5 ustar Reset Reset tests/minimal.xml 0000644 0000764 0000764 00000000573 10233334741 013333 0 ustar Reset Reset
Presentation Title
Foilgroup Title
Foilgroup Subtitle
Some premable.
Foil Title
Foil Subtitle
Foil content
tests/test-full.xml 0000644 0000764 0000764 00000001311 07613774016 013626 0 ustar Reset Reset
Test Slides Title
2001Norman Walsh
Section 1
Test Slides Title 1
...X
Test Slides Title 2
...
this is a screen
Section 2
Test Slides Title 1
...
Test Slides Title 2
...
this is a screen
tests/dbgentext.xml 0000644 0000764 0000764 00000015101 07614554664 013703 0 ustar Reset Reset
Supporting Localized Generated Text
Generated Text
NormanWalsh
Sunday, 08 Apr 2001
XSLTUK-01
08 Apr - 09 Apr 2001
Keble College, Oxford, UK
1
Version TEST
2001
Sun Microsystems, Inc.
Introduction
Say something pithy in the introduction
This is the introductory slide
The Problem
This is on the foilgroup slide.
Remember to describe the use-caess
Generated Text
Semantic markup often omits text that can be generated
automatically
Different contexts require different generated text,
naturally
Generated text is locale-specific
An Example
An obvious, common example is chapter title markup. Consider:
<chapter label="3"><title>Some Title</title> ...
The title page for a chapter varies by location:
English:
Chapter 3. Some Title
French:
Chapitre 3. Some Title
A Solution
The Old Solution
Replace this
]]>
]]> ]]>
]]>
with this
]]>
Chapter
]]>]]>
]]>]]>
]]>
Generated from Localization Data
L10N Data
Where the generated text for words like Chapter
is taken from an independently maintained lookup table:
...
...]]>
Problems
Single-word localization (doesn't support Japanese)
Hard-coded presentation elements (number and title)
Hard-coded presentation order (gentext, number, title)
Hard-coded number format
A Better Solution
Use Markup Templates
Use a lookup function to determine the markup template in addition
to the keywords. For example, the markup template
lookup
table for a chapter title looks something like this:
LocalizationTemplate Returned
EnglishChapter %n. %t
FrenchChapitre %n. %t
The markers, %n, %t, and
%s (not shown) are replaced by the lable, title, and
subtitle of the component, respectively.
The New
Solution
Find the template and fill it in:
]]>
Generated from Localization Data
L10N Data
In order to make this work, the localization data is extended:
...
]]>
]]>]]>
]]>]]>
]]>
Resources
Resources
, the
DocBook Home Page.
, the
stylesheets and related document types (including the slides layer that
was used to produce this presentation.)
Mailing lists: docbook@lists.oasis-open.org,
for questions about DocBook; docbook-apps@lists.oasis-open.org,
for questions about DocBook applications, stylesheets, and other tool-related
queries.
tests/tr-862918.xml 0000644 0000764 0000764 00000002506 10233334741 013107 0 ustar Reset Reset
GITK - Generalized Interface ToolKit
Dynamically generated multi-modal application interfaces
GITK
Dipl. Inf
Stefan
Kost
Prof. Dr
Wolfgang
Wünschmann
Betreuer der Arbeit
TU Dresden
FB Informatik, Institut für Angewandte
Informatik
Prof. Dr
Klaus
Bastian
Betreuer der Arbeit
HTWK Leipzig
FB IMN
0.2.0
2003
Stefan Kost
16.12.2003
Foilgroup Title
Foilgroup Subtitle
Some premable.
Foil Title
Foil Subtitle
Foil content
tests/testhtml.xml 0000644 0000764 0000764 00000002436 10233334741 013551 0 ustar Reset Reset
HTML Test Slides Title
2001Norman Walsh
Welcome the audience
Section 1
Introduce the section
Test Slides Title 1
Tell a funny joke. Remember, I said a funny one.
...
Test Slides Title 2
...
this is a screen
Section 2
Test Slides Title 1
...
Test Slides Title 2
...
this is a screen
Test Slides Title 3
...
this is a screen
This foil contains some XHTML:
item 1item 2