-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graphic or logo in the header #44
Open
der-schmelle2
wants to merge
28
commits into
tomschr:develop
Choose a base branch
from
der-schmelle2:feature/pageheader-graphic
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
7ed9c20
Section about how to place a graphic or logo in the header of an docu…
der-schmelle2 e911f56
Add myself as author
der-schmelle2 3877f83
Add a link within the section
der-schmelle2 9dad7d6
Made alterations suggested through the review by @tomschr - Part I
der-schmelle2 f89141f
Imagefile handling within programlisting
der-schmelle2 f9c4c33
Build example stylesheet file
der-schmelle2 ffcf757
Merge branch develop into feature/pageheader-graphic
der-schmelle2 c324c08
Merge branch feature/pageheader-graphic into develop
der-schmelle2 6f34d84
Document redesign to prozedural steps
der-schmelle2 4b4d7c8
Syntax error in programlisting
der-schmelle2 283b9bc
Syntax error corrected, second time
der-schmelle2 339280c
Clarify the global option 'img.src.path'
der-schmelle2 17aa61d
Conducted the proposed changes by @tomschr
der-schmelle2 547da13
Conducted the proposed changes II
der-schmelle2 c6a9877
Discussion section rewritten
der-schmelle2 0e48460
Fixed two typos
der-schmelle2 bad3751
Conducted the proposed changes III
der-schmelle2 a5f09fd
Removed 'procedure' in line 192
der-schmelle2 4ad0914
oXygenXML line wrap a char 78
der-schmelle2 5afd918
oXygenXML view changes for 4K display
der-schmelle2 b554bf2
Merge branch 'develop' of https://github.com/tomschr/dbcookbook.git
der-schmelle2 73982f8
Merge remote-tracking branch 'origin/develop' into feature/pageheader…
der-schmelle2 7750465
Cleanup
der-schmelle2 39ac4fe
test
der-schmelle2 56f952d
Rewritten with new header.table content
der-schmelle2 ac67984
<tag/> correction
der-schmelle2 8667d2d
Project File changed
der-schmelle2 6e644b9
Intended shortend in file
der-schmelle2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns="http://docbook.org/ns/docbook" | ||
xmlns:d="http://docbook.org/ns/docbook" version="1.0"> | ||
<!-- Path and name of your graphic file--> | ||
<xsl:param name="img.src.path">./graphic-pageheader/</xsl:param> | ||
<xsl:param name="header.image.filename">Opensource.svg</xsl:param> | ||
<!-- Header rule yes (1) / no (0) --> | ||
<xsl:param name="header.rule" select="0"/> | ||
|
||
<xsl:template name="header.content"> | ||
<xsl:param name="pageclass" select="''"/> | ||
<xsl:param name="sequence" select="''"/> | ||
<xsl:param name="position" select="''"/> | ||
<xsl:param name="gentext-key" select="''"/> | ||
<fo:block> | ||
<!-- sequence can be odd, even, first, blank --> | ||
<!-- position can be left, center, right --> | ||
<xsl:choose> | ||
<xsl:when test="$sequence = 'blank'"> | ||
<!-- nothing --> | ||
</xsl:when> | ||
|
||
<xsl:when test="$position='left'"> | ||
<!-- Same for odd, even, empty, and blank sequences --> | ||
<!-- nothing --> | ||
</xsl:when> | ||
|
||
<xsl:when test="($sequence='odd' or $sequence='even') and $position='center'"> | ||
<!-- nothing --> | ||
</xsl:when> | ||
|
||
<xsl:when test="$position='center'"> | ||
<!-- nothing for empty and blank sequences --> | ||
</xsl:when> | ||
|
||
<xsl:when test="$position='right'"> | ||
<!-- Same for odd, even, empty, and blank sequences --> | ||
<fo:external-graphic content-height="1in"> | ||
<xsl:attribute name="src"> | ||
<xsl:call-template name="fo-external-image"> | ||
<xsl:with-param name="filename" select="concat($img.src.path, $header.image.filename)"/> | ||
</xsl:call-template> | ||
</xsl:attribute> | ||
</fo:external-graphic> | ||
</xsl:when> | ||
|
||
<xsl:when test="$sequence = 'first'"> | ||
<!-- nothing for first pages --> | ||
</xsl:when> | ||
|
||
<xsl:when test="$sequence = 'blank'"> | ||
<!-- nothing for blank pages --> | ||
</xsl:when> | ||
</xsl:choose> | ||
</fo:block> | ||
</xsl:template> | ||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This contains a syntax error: