Hi,
I'm trying to generate numbered links from my source document. The
transform is using <xsl:result-document/> to generate multiple output
documents from a single input document.
For each output document, I have a requirement to generate numbered
links. I think I need to use the from attribute of <xsl:number/>, but
I haven't managed to get it working.
My cut-down example is here:
http://gist.github.com/632088
Running this and looking at the generated diagnosis.html shows me that
link numbering in that file starts from 2, rather than the desired 1.
I believe is because the /article/body/symptoms/sec/p[1] element
contains an xref[(_at_)ref-type='bibr' and @rid] element.
So my thinking was that I need to specify a from attribute on the
<xsl:number/> element that matches the ancestor element which is a
child of the body element. Alternatively, I want the child of the body
element which is an ancestor of the context node.
Unfortunately, I do not seem to be able to do that; specifying the
ancestor axis in the from attribute causes an error, so I'm a little
stuck. I can't just specify from="diagnosis" since then it won't work
for when I come to write the templates to generate the symptoms output
document. I am going to try explicitly listing the possible matches
for the from attribute; i.e. from="diagnosis | symptoms" but I don't
understand the ramifications of this fully.
Please could someone nudge me in the right direction?
Cheers,
James
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--