Altova Mailing List Archives
>comp.text.xml Archive Home
>Thread Prev - Modifying Source Data from XSLT
>Thread Next - Re: Modifying Source Data from XSLT
Re: Modifying Source Data from XSLT
Date: 6/8/2006 11:01:00 AM
Jamie Jackson wrote: > Is there a way to modify the underlying data, as opposed to having to > clean it each time you come to it? You can't alter the source document -- expect by taking a two-pass approach, one pass to create the altered source and then a second pass to style from that. The two passes can be done in a single stylesheet, with some work, if you're either using XSLT2 or are willing to use the EXSLT node-set() function -- build the altered tree in a variable, then style from that -- but of course this doubles your memory use and means touching everything twice, so it may not be a net win.