You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my use-case: i have DocBook sources in a directory file:/mnt/shared/xnachweis/src. I want chunked output not below, but next to the sources in directory file:/mnt/shared/xnachweis/chunk.
When i use xslTNG within Oxygen, it is convenient to use a so called Editor variable which references the directory of the current source file and navigate from there. Resolving this variable leads to
which references the same directory as before. Chunk files will be in the correct Directory, but the persistent ToC will not work. The reason is, that in mode mp:copy-patch-toc in chunk-output.xsl the prefix of $vp:chunk-output-base-uri is compared with the prefix of another URI, and the unnecessary down-up fragment/src/.. causes comparison to fail.
$vp:chunk-output-base-uri is a normalized value of $chunk-output-base-uri, but it is not normalized enough. It should also be shortened, so that file:/mnt/shared/xnachweis/src/..chunk/ becomes file:/mnt/shared/xnachweis/chunk/. I will try to provide a PR.
Greetings, Frank Steimke
The text was updated successfully, but these errors were encountered:
fsteimke
added a commit
to fsteimke/xslTNG
that referenced
this issue
Jan 8, 2025
This is my use-case: i have DocBook sources in a directory
file:/mnt/shared/xnachweis/src
. I want chunked output not below, but next to the sources in directoryfile:/mnt/shared/xnachweis/chunk
.From the command line, i would set
When i use xslTNG within Oxygen, it is convenient to use a so called Editor variable which references the directory of the current source file and navigate from there. Resolving this variable leads to
which references the same directory as before. Chunk files will be in the correct Directory, but the persistent ToC will not work. The reason is, that in mode
mp:copy-patch-toc
inchunk-output.xsl
the prefix of$vp:chunk-output-base-uri
is compared with the prefix of another URI, and the unnecessary down-up fragment/src/..
causes comparison to fail.$vp:chunk-output-base-uri
is a normalized value of$chunk-output-base-uri
, but it is not normalized enough. It should also be shortened, so thatfile:/mnt/shared/xnachweis/src/..chunk/
becomesfile:/mnt/shared/xnachweis/chunk/
. I will try to provide a PR.Greetings, Frank Steimke
The text was updated successfully, but these errors were encountered: