Re: [xsl] Stumped on XPath

Subject: Re: [xsl] Stumped on XPath
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 8 Feb 2006 01:30:39 GMT
> Thanks for the response. Your solution does in fact work perfectly.
> The only problem is when I move the refnote element around (I used
> 1,2,3 for testing purposes however in truth these are more on the
> lines of 2341234, 245532139, etc.) I don't get the results I expect.

just use the attribute on xsl:number to control whether it just numbers
in the current element, or the whole document, or from teh nearest
appendix ancestor or whatever you need.

I'm not sure quite what you want as I think you have a typo in your
revised version

> Should give
> 
> <html><head><META http-equiv="Content-Type" content="text/html"></head><body>
>  <p>This is a sentence with a reference (see Appendix A)  as an
> inline element</p>
>     <p class="clause">This is a clause with inline elements <strong>
> and</strong> a reference  (see Appendix A) </p>
> </body></html>
> 

do you really want "A" twice? and anyway it's too late (or early) to
think about this. But perhaps level="any" is all you need.
In any case my main point remains, you should just use whatever code you
use to generate the numbers at the point where you output the texts.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread