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>
==================================================
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>
==================================================