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. Advertisements

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. Kevin Flood
    Replies:
    0
    Views:
    1,235
    Kevin Flood
    Sep 8, 2004
  2. Kevin Flood
    Replies:
    1
    Views:
    3,170
    Kevin Flood
    Sep 13, 2004
  3. Replies:
    1
    Views:
    3,907
    A. Bolmarcich
    May 27, 2005
  4. Ian Roddis

    xslt queries in xml to SQL queries

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

    Dynamic Queries

    Chris, Jan 7, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    435
    Robbe Morris [C# MVP]
    Jan 13, 2007
  6. zainab
    Replies:
    0
    Views:
    641
    zainab
    Dec 31, 2007
  7. enggr
    Replies:
    0
    Views:
    1,769
    enggr
    Jun 30, 2010
  8. Abby Lee

    so many queries within queries I'm confused

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