From: SourceForge.net <no...@so...> - 2006-08-14 00:15:33
|
Bugs item #1528002, was opened at 2006-07-24 14:39 Message generated for change (Comment added) made by bobstayton You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=1528002&group_id=21935 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XSL Group: output: HTML Status: Open Resolution: None Priority: 5 Submitted By: Feanorelf (feanorelf) >Assigned to: Robert Stayton (bobstayton) Summary: olink does not capture dbhtml dir Initial Comment: I have a modular book, and I am trying to make a chunk xhtml out of it. The xml sitemap is: book |------- book.xml | |------- chapter01 | |------ chapter01.xml | |------ article0101.xml | |------ article0102.xml | |------- chapter02 | |------ chapter02.xml | |------ article0201.xml | |------ article0202.xml Each chapter has its own directory, and each article is an xml file. The output sitemap has the same directory structure: |------- index.xml | |------- chapter01 | |------ chapter01.html | |------ article0101.html | |------ article0102.html | |------- chapter02 | |------ chapter02.html | |------ article0201.html | |------ article0202.html That is the chapter have instructions: chapter01 --> <?dbhtml dir="chapter01" ?> chapter02 --> <?dbhtml dir="chapter02" ?> My target database is: The target database for chunk xhtml is: <targetset> <sitemap> <dir name="xhtml"> <document targetdoc="index">&targets;</document> <dir name="chapter01"> <document targetdoc="art0101">&targets;</ document> <document targetdoc="art0102">&targets;</ document> </dir> <dir name="chapter02"> <document targetdoc="art0201">&targets;</ document> <document targetdoc="art0202">&targets;</ document> </dir> </dir> </sitemap> </targetset> Here the bug: I have an olink in article0101 to article0201, i.e.: <olink targetdoc="art0201" targetptr="foo">article 2.1</olink> The resulting xhtml hyperlink is: <a href="chapter02/article0201.html#foo"> while it should be: <a href="../chapter02/article0201.html#foo"> Additional info: I generated the target.db with: xsltproc --xinclude \ --stringparam collect.xref.targets "only" \ xhtml/chunk.xsl book.xml I generated my chunked xhtml with: xsltproc --xinclude \ --stringparam target.database.document "olinkdb.xml" \ --stringparam current.docid "index" \ xhtml/chunk.xsl book.xml and I have: <xsl:param name="base.dir">xhtml/<xsl:param> in my customization layer. ---------------------------------------------------------------------- >Comment By: Robert Stayton (bobstayton) Date: 2006-08-13 17:15 Message: Logged In: YES user_id=193218 The structure of your document isn't quite clear. It looks like you are putting articles incide of chapters, but that isn't valid DocBook. Does your master book document use xi:include on chapter and then the article in that chapter directory? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=1528002&group_id=21935 |