Dynamic XSL-Queries

M

Martin Buchleitner

Hi !

At the moment i split the document into seperate NodeSets
which consist of one 'style1' block. This block goes either
until the end of the document or until another 'style1' block
appears.
This all is hardcoded defined in the style-sheet at the moment.
But i want to be able to use the user-defned styles which are
based on the style1 - style, which is designed by the application.

At the moment i am only able to split out Block #1 + #2, but i also
want to use the style-definitions to geht Block #3.

Is there any possibiliy to do a lookup into the style-definition
section and to use this data to split out this blocks?

Thanks Martin

=====Example XML==================================
<document>
<styles>
<style id='style1'>
... some definitions ...
</style>
<style id='user-defined-style'>
<basic-style>style1</basic-style>
... some definitions ...
</style>
</styles>
<data>
<paragraph> --------------|
<style>style1</style1> |
<text> ... some text ... </text> |
</paragraph> | Block #1
... some styles different from 'style1' ...
<paragraph> --------------|
<style>style1</style1> |
<text> ... some text ... </text> |
</paragraph> | Block #2
... some styles different from 'style1' ...
<paragraph> --------------|
<style>user-defined-style</style1|
<text> ... some text ... </text> |
</paragraph | Block #3
... some styles different from 'style1' ...
</data> --------------|
</document>
==================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top