469,612 Members | 1,674 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,612 developers. It's quick & easy.

is this possible with xlst?

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
Dec 3 '07 #1
1 1850
Wow, my colleagues and I are impressed! Thanks a lot!

-- dave
Dec 4 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Pascal Sartoretti | last post: by
1 post views Thread by Vital Lobachevsky | last post: by
3 posts views Thread by Hai Nguyen | last post: by
1 post views Thread by donjonnio via DotNetMonster.com | last post: by
3 posts views Thread by Hai Nguyen | last post: by
1 post views Thread by Adrian | last post: by
1 post views Thread by ad | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.