|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Correcting a prior error
I think you're out by one: the outermost element will have
count(ancestor::*|preceding::*) equal to 0, but can be retrieved as (.//*)[1]. I think I would use <xsl:key name="p" match="*"> <xsl:number level="any" count="*" from="/"/> </xsl:key> then <xsl:variable name="posn"> <xsl:number level="any" count="*" from="/"/> </xsl:variable> <xsl:variable name="val" select="document($src)/key('p', $posn)"/>
On 30/07/2010 09:44, Dave Pawson wrote: I've been working with a series of xhtml like files, cleaning them up. It was a case of run an identity tranform, apply corrections. That was the theory. Luckily I kept a backup. I hastily created an incorrect version of the identity transform which omitted to copy the contents of any attributes.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








