Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: is this possible with xlst? is this possible with xlst?To: NULL Date: 12/3/2007 12:35:00 PM Hello all, I would like to do something with xlst, perhaps I can get help from this group? Here it goes: I've got 2 files: an ascii file and a file that identifies tokens in the ascii file. For example the ascii file could be: This is just a simple text. And the token file identifies some tokens in the ascii file (but NOT necessarily all of them), like that: <tokens> <token pos="6...7"/> <token pos="14...14"/> </tokens> (note: always 3 dots between the numbers) The first token referrs to "is" (6th and 7th chars in text), the second token to "a" (14th char in text). Is it possible to write an xlst style sheet that takes both files as input and transforms them into: <transformed_tokens> <transformed_token text="is"/> <transformed_token text="a"/> </transformed_tokens> Perhaps I'm pushing xlst too far and it's impossible? Anyway I prefer to check by asking here. -- dave | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
