Dynamic XSL-Queries

Discussion in 'XML' started by Martin Buchleitner, Jul 15, 2003.

  1. 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>
    ==================================================
     
    Martin Buchleitner, Jul 15, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    3,651
    A. Bolmarcich
    May 27, 2005
  2. Ian Roddis

    xslt queries in xml to SQL queries

    Ian Roddis, Feb 26, 2006, in forum: Python
    Replies:
    3
    Views:
    1,549
    Crutcher
    Feb 26, 2006
  3. Chris

    Dynamic Queries

    Chris, Jan 7, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    374
    Robbe Morris [C# MVP]
    Jan 13, 2007
  4. enggr
    Replies:
    0
    Views:
    1,660
    enggr
    Jun 30, 2010
  5. Abby Lee

    so many queries within queries I'm confused

    Abby Lee, Aug 4, 2004, in forum: ASP General
    Replies:
    11
    Views:
    371
    Aaron [SQL Server MVP]
    Aug 6, 2004
Loading...

Share This Page