|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
PDF template customization [continued]Sorry to post twice in a row on the same subject -- I ran into another thing, I don't
seem to be able to get the isIncluded attribute... The problem I'm trying to solve is that the included documents are shown with a full document title instead of just a sub-heading. I also want to show a small indicating that the section is an included document. Here is what I did: file: document-to-xslfo <xsl:template match="d:document"> <xsl:choose> <xsl:when test="@isIncluded = 'true'"> <fo:block xsl:use-attribute-sets="h1"><xsl:value-of select="@name"/></fo:block> </xsl:when> </xsl:choose> Somehow, the @isIncluded seems to always be blank. This same kind of code works great in HTML. Etienne _______________________________________________ daisy community mailing list Professional Daisy support: http://outerthought.org/en/services/daisy/support.html mail to: daisy@... list information: http://lists.cocoondev.org/mailman/listinfo/daisy |
|
|
Fw: PDF template customization [continued]I sent these two posts earlier but I'm afraid it got lost with many other post.
Anybody got an idea? Etienne ------ Subject: PDF template customization [continued] Sorry to post twice in a row on the same subject -- I ran into another thing, I don't seem to be able to get the isIncluded attribute... The problem I'm trying to solve is that the included documents are shown with a full document title instead of just a sub-heading. I also want to show a small indicating that the section is an included document. Here is what I did: file: document-to-xslfo <xsl:template match="d:document"> <xsl:choose> <xsl:when test="@isIncluded = 'true'"> <fo:block xsl:use-attribute-sets="h1"><xsl:value-of select="@name"/></fo:block> </xsl:when> </xsl:choose> Somehow, the @isIncluded seems to always be blank. This same kind of code works great in HTML. Etienne ---------------- Hello all, one more thing I'm now running into in using the PDF generation templates -- it looks like the header shifting is not working. I'm on version 2.2 of Daisy. It works fine on HTML but in the PDF, it does not. Any idea? Etienne _______________________________________________ daisy community mailing list Professional Daisy support: http://outerthought.org/en/services/daisy/support.html mail to: daisy@... list information: http://lists.cocoondev.org/mailman/listinfo/daisy |
|
|
Re: Fw: PDF template customization [continued]Hi
Just to be sure this is pdf generation in the books. I'm just stating since there is also an on-the-fly pdf generation for single documents. On the heading shifting. I've seen this happen before but then the numbering in html was also off. This was due to duplicate documents in the book definition so that is one place to look. If the numbering breaks on includes check the properties that are set on the include statement. There are some properties that can manipulate the heading shifting. The @isIncluded attribute is found on the d:document element but rather on /document :-) so the test would be <xsl:when test="/document/@isIncluded">. You see the d:document element is somewhere further down the dom tree. Anyway if you don't know what xml you are working with just do a <xsl:copy-of select="someelement"/> to see what it looks like. This will copy the xml into the output so that you can study it. Paul On Thu, Aug 13, 2009 at 6:39 PM, Etienne Lacombe <etiennel@...> wrote: I sent these two posts earlier but I'm afraid it got lost with many other post. _______________________________________________ daisy community mailing list Professional Daisy support: http://outerthought.org/en/services/daisy/support.html mail to: daisy@... list information: http://lists.cocoondev.org/mailman/listinfo/daisy |
| Free embeddable forum powered by Nabble | Forum Help |