473,378 Members | 1,518 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Dynamic XSL-Queries

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

Jul 20 '05 #1
0 1315

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Devon | last post by:
Hi All, I'm generating a pdf document using FOP .25 from Apache. I've created running dynamic headings (e.g. chapter titles) that change as dictated by the XML source I'm converting to PDF. Now...
2
by: Curantil | last post by:
When I look at all the examples every selection like select="child::item" has a constant value to test against ("3" in this case). Can't this be done with a variable? eg: select="child::item" ...
0
by: Ex-Em-El | last post by:
I have a problem in creating a dynamic table in the same xml : 1.xml: <?xml version="1.0" standalone="yes"?> <?xml-stylesheet type="text/xsl" href="2.xsl"?> <aaa...
5
by: ccjunk | last post by:
This may be a simple one but I have been working on it without joy for a couple of days now. Reading books and searching these groups hasn't helped yet either. I am trying to create a table...
2
by: systemutvecklare | last post by:
Hi! I have an application that generates an html-form from an xml-file using an xsl-file. My problem is that I want the xsl to use some "unknown" parameters that I pass to the xslt processor...
2
by: absolut | last post by:
I'm trying to build a dynamic web form using ASP.NET. Basically I've defined all the fields for the form in the database. When the aspx is launched, it will first grab those values from the SQL DB...
1
by: sai krishna | last post by:
I am having a static xml document and would like to extract a portion of the xml and display it using xsl, but the condition on which to filter the xml document is dynamic in nature, Is there a way...
5
by: Daniel Frey | last post by:
Hello I'd like to match a dynamic node, given as a parameter to the stylesheet. Something like: <xsl:stylesheet ...> <xsl:param name="tomatch"/> <xsl:template match="{$tomatch}"> Hallo...
4
by: Ed Jay | last post by:
I generate a DHTML page (a medical report) with dynamically generated text based on user input (answers to questions). The page length changes dynamically. I desire that when the page is printed...
6
by: Muthu08 | last post by:
Hello Experts, I'm trying to convert an dynamic XML doc into HTML using XSLT. In the example I have shown one form(form1)...But there could be multiple forms....names are unknown and each one...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.