Subject: Re: read/write in the same xml file
From: abbouh <abbouh@xxxxxxxxxxxxxxxxx>
Date: Wed, 11 Jun 2003 16:23:07 +0000
|
right,
i give you an example for xml file
but my xml file is more convoluted, there is different noeud,tags,
reference to others doc
my xml file have the dicodoc DTD ,so it's more difficult with this solution
Mike Haarman a écrit :
> 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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- Implementing and Hide/Unhide function in XSL, (continued)
- Connor T. Fee - Tue, 10 Jun 2003 16:05:36 -0400 (EDT)
- abbouh - Wed, 11 Jun 2003 06:10:06 -0400 (EDT)
- Jarno . Elovirta - Wed, 11 Jun 2003 07:30:29 -0400 (EDT)
- Mike Haarman - Wed, 11 Jun 2003 11:00:48 -0400 (EDT)
- abbouh - Wed, 11 Jun 2003 12:11:50 -0400 (EDT) <=
- abbouh - Wed, 11 Jun 2003 12:51:23 -0400 (EDT)
- abbouh - Thu, 12 Jun 2003 06:35:00 -0400 (EDT)
- David Carlisle - Thu, 12 Jun 2003 07:08:22 -0400 (EDT)
- Wendell Piez - Wed, 11 Jun 2003 12:53:26 -0400 (EDT)
|
|