[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] read/write in the same xml file
Subject: Re: [xsl] read/write in the same xml file From: "Mike Haarman" <mhaarman@xxxxxxxxxxxxxxxxxx> Date: Wed, 11 Jun 2003 10:04:09 -0500 |
From: <Jarno.Elovirta@xxxxxxxxx> abbouh wrote: > > this is an example for what i want to do: > > > > table of contents: > > paragraph1 12 32 > > paragraph2 44 59 > > > > Feels really silly to write stylesheets like this... > It should. This is not a solution. You've hardcoded an offset to accomodate the characters that make up the tags leading the first strings of content. Any other leading markup will break the stylesheet. Abbouh, as Wendell pointed out, XSLT treats with nodes, not tags. I suppose it possible that one could trick up the stylesheet to work with strings returned by local-name() to correct the offset, but I think it is fair to say that any solution using XSLT would be very brittle. hth, Mike XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] read/write in the same xm, Jarno . Elovirta | Thread | Re: [xsl] read/write in the same xm, abbouh |
[xsl] contains any child nodes attr, florian | Date | Re: [xsl] contains any child nodes , David Carlisle |
Month |
Keywords