Hi, Pavel.
kralik <[EMAIL PROTECTED]> wrote on 2006-04-30 08:06:45 AM:
> 1. Numbering begins from zero (0) :-((( It's probably my mistake,
> but I can't find resolution.
Your xsl:number instruction looks like this:
<xsl:number count="//Picture//text()" from="DiplomovA¡_prA¡ce"
level="any" format="1.: "/>
According to section 7.7 of XSLT 1.0,
When level="any", it constructs a list of length one containing the number
of nodes that match the count pattern and belong to the set containing the
current node and all nodes at any level of the document that are before
the current node in document order, excluding any namespace and attribute
nodes
The current node in this case, is the first Picture element in the
document. The first node that matches the count pattern is the child text
node of that Picture element, so it doesn't belong to the set containing
the current node and all nodes preceding the current node it in document
order. I think what you really want to write is this:
<xsl:number count="//Picture[.//text()]" from="DiplomovA¡_prA¡ce"
level="any" format="1.: "/>
> 2. Some numbers appear twice (Picture 5 in my FO file). When I try
> to produce PDF file using XEP, numbering is OK in this point (but
> begins from zero too :-( ).
That looks like a bug in Xalan-Java. Could I ask you to open a bug report
for that problem? (By the way, the bug is hidden if you make the
correction to xsl:number I described above.
Thanks,
Henry
------------------------------------------------------------------
Henry Zongaro Xalan development
IBM SWS Toronto Lab T/L 969-6044; Phone +1 905 413-6044
mailto:[EMAIL PROTECTED]