On 02/21/2012 02:47 PM, Jirka Kosek wrote:
>
> idea of custom title page is very nice, however it lacks one important
> feature. Content of FO (or XHTML) file is included as is, it is not
> possible to use XSLT/XPath constructs inside it. In many cases custom
> title page depends on information from document itself and content has
> to be created dynamically.
Thanks Jirka! We understand your point. However our analysis was
different from yours:
Someone who really needs a custom title page will not bother carefully
crafting it by hand. This is why, in our opinion, supporting only static
custom title pages is at the same time sufficient, simple to understand
for a user and simple to implement for us.
Please do not forget that adding features means adding one or more
non-regression tests per feature and also writing some documentation.
All this may represent too much work for us, XMLmind. That's why, from
now on, we cannot guarantee anymore that the next version of ditac will
be functionnally superior or equal to your custom version of ditac. That
is, this morning, I spoke too hastily. Sorry for that.
What I'm saying should not prevent you from freely modifying ditac to
suit your needs and from posting your changes to this mailing-list. We
are of course very interested in your ideas and in how you implemented them.
---
PS: We are impressed by the speed at which you took control of ditac.
(Yes, this is fast, even for an XML expert like you.) For us, this is
very rewarding because it implies that the design of ditac (complete
separation between preprocessing and ``styling'') seems to be a good one.
>
> For example if you want to specify PDF image of cover page in bookmap,
> you can use:
>
> <bookmap>
> ...
> <bookmeta>
> ...
> <data name="cover-page" href="images/cover-page.pdf"/>
> </bookmeta>
>
> But in current custom title page it is not possible to access this data
> element.
>
> I have extended current mechanism little bit, so now you can use auto,
> none, URI or elements in FO namespace inside $title-page, such as:
>
> <xsl:param name="title-page">
> <xsl:choose>
> <xsl:when test="$ditacLists/ditac:titlePage/bookmeta/data[@name eq
> 'cover-page']/@href">
> <fo:block-container position="absolute" left="-1in" top="-1in">
> <fo:block>
> <fo:external-graphic
> src="url({$ditacLists/ditac:titlePage/bookmeta/data[@name eq
> 'cover-page']/@href})"/>
> </fo:block>
> </fo:block-container>
> </xsl:when>
> <xsl:otherwise>auto</xsl:otherwise>
> </xsl:choose>
> </xsl:param>
>
> I'm attaching modified ditac_titlePage.xsl
>
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support