D
dave_kajinsky
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
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