Altova Mailing List Archives

Re: [xsl] read/write in the same xml file

From: abbouh <abbouh@----------------->
Date: 6/11/2003 8:51:00 AM
it was a wrong problem ,because we can read/write from an external document
i have a mistake in the xsl steelsheet
so i'm sorry,and thanks for all

abbouh a &eacute;crit :

> 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 &eacute;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:
>  XSL-List info and archive:

 XSL-List info and archive:


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.