473,785 Members | 2,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

creating xsl style sheet for xml

sp
Hello everybody,
How can I create xsl for the following xml?

*************** *************** *************** **********
<?xml version="1.0"?>
<result state="success" >
<row>
<column name="isbn">0-226-56737-0</column>
<column name="commentte xt">There is a popular and romantic myth about
Rembrandt and the Jewish people. One of history's greatest artists, we are
often told, had a special affinity for Judaism. With so many of Rembrandt's
works devoted to stories of the Hebrew Bible, and with his apparent penchant
for Jewish themes and the sympathetic portrayal of Jewish faces, it is no
wonder that the myth has endured for centuries.
Rembrandt's Jews puts this myth to the test as it examines both the legend
and the reality of Rembrandt's relationship to Jews and Judaism. In his
elegantly written and engrossing tour of Jewish Amsterdam-which begins in
1653 as workers are repairing Rembrandt's Portuguese-Jewish neighbor's house
and completely disrupting the artist's life and livelihood-Steven Nadler
tells us the stories of the artist's portraits of Jewish sitters, of his
mundane and often contentious dealings with his neighbors in the Jewish
quarter of Amsterdam, and of the tolerant setting that city provided for
Sephardic and Ashkenazic Jews fleeing persecution in other parts of Europe.
As Nadler shows, Rembrandt was only one of a number of prominent
seventeenth-century Dutch painters and draftsmen who found inspiration in
Jewish subjects. Looking at other artists, such as the landscape painter
Jacob van Ruisdael and Emmanuel de Witte, a celebrated painter of
architectural interiors, Nadler is able to build a deep and complex account
of the remarkable relationship between Dutch and Jewish cultures in the
period, evidenced in the dispassionate, even ordinary ways in which Jews and
their religion are represented-far from the demonization and grotesque
caricatures, the iconography of the outsider, so often found in depictions of
Jews during the Middle Ages and the Renaissance.
Through his close look at paintings, etchings, and drawings; in his
discussion of intellectual and social life during the Dutch Golden Age; and
even through his own travels in pursuit of his subject, Nadler takes the
reader through Jewish Amsterdam then and now-a trip that, under
ever-threatening Dutch skies, is full of colorful and eccentric
personalities, fiery debates, and magnificent art.
</column>
<column name="">2164</column>
</row>
<row>
<column>0-945103-18-2</column>
<column>This directory offers detailed information on the publishing
programs and personnel of AAUP's 125 member presses. Its features include a
subject guide; complete addresses, telephone and fax numbers, and e-mail
addresses for each press; guidelines for submitting manuscripts; suggestions
for further reading; and an index of press personnel.</column>
<column>340</column>
</row>
</result>

*************** *************** *************** ***********
Thanks in Advance

sp
Nov 12 '05 #1
4 1937
"sp" wrote:
How can I create xsl for the following xml?


Well, that all depends on what result you want (and whether you meant XSL or
XSLT).

Cheers,
Stuart Celarier, Fern Creek
Nov 12 '05 #2
sp
Hi Stuart,
I need to create xslt for the xml below. This xml format is my standard
foramt for multiple records. What I want to do is to create xslt for this xml
and then transform any format xml to this format. But my problem to create
xslt for this one is, when I am displaying the first row and i need to
display column names as attributes to that column elements, After the first
row I just need to display as elements.

Any suggestions how to create xslt for the xml below

*************** *************** *************** **********
<?xml version="1.0"?>
<result state="success" >
<row>
<column name="isbn">0-226-56737-0</column>
<column name="commentte xt">There is a popular and romantic myth about
Rembrandt and the Jewish people. One of history's greatest artists, we are
often told, had a special affinity for Judaism. With so many of Rembrandt's
works devoted to stories of the Hebrew Bible, and with his apparent penchant
for Jewish themes and the sympathetic portrayal of Jewish faces, it is no
wonder that the myth has endured for centuries.
Rembrandt's Jews puts this myth to the test as it examines both the legend
and the reality of Rembrandt's relationship to Jews and Judaism. In his
elegantly written and engrossing tour of Jewish Amsterdam-which begins in
1653 as workers are repairing Rembrandt's Portuguese-Jewish neighbor's house
and completely disrupting the artist's life and livelihood-Steven Nadler
tells us the stories of the artist's portraits of Jewish sitters, of his
mundane and often contentious dealings with his neighbors in the Jewish
quarter of Amsterdam, and of the tolerant setting that city provided for
Sephardic and Ashkenazic Jews fleeing persecution in other parts of Europe.
As Nadler shows, Rembrandt was only one of a number of prominent
seventeenth-century Dutch painters and draftsmen who found inspiration in
Jewish subjects. Looking at other artists, such as the landscape painter
Jacob van Ruisdael and Emmanuel de Witte, a celebrated painter of
architectural interiors, Nadler is able to build a deep and complex account
of the remarkable relationship between Dutch and Jewish cultures in the
period, evidenced in the dispassionate, even ordinary ways in which Jews and
their religion are represented-far from the demonization and grotesque
caricatures, the iconography of the outsider, so often found in depictions of
Jews during the Middle Ages and the Renaissance.
Through his close look at paintings, etchings, and drawings; in his
discussion of intellectual and social life during the Dutch Golden Age; and
even through his own travels in pursuit of his subject, Nadler takes the
reader through Jewish Amsterdam then and now-a trip that, under
ever-threatening Dutch skies, is full of colorful and eccentric
personalities, fiery debates, and magnificent art.
</column>
<column name="">2164</column>
</row>
<row>
<column>0-945103-18-2</column>
<column>This directory offers detailed information on the publishing
programs and personnel of AAUP's 125 member presses. Its features include a
subject guide; complete addresses, telephone and fax numbers, and e-mail
addresses for each press; guidelines for submitting manuscripts; suggestions
for further reading; and an index of press personnel.</column>
<column>340</column>
</row>
</result>

*************** *************** *************** ***********

Thanks in advance
sp

"Stuart Celarier" wrote:
"sp" wrote:
How can I create xsl for the following xml?


Well, that all depends on what result you want (and whether you meant XSL or
XSLT).

Cheers,
Stuart Celarier, Fern Creek

Nov 12 '05 #3
Hi sp

Still not exactly clear what you want - the best thing to do is to send an
example of the output document that you want from the transformation as well
as the source - hand craft one if necessary. Then I'm sure that you will get
the answer!!

Nigel

"sp" wrote:
Hi Stuart,
I need to create xslt for the xml below. This xml format is my standard
foramt for multiple records. What I want to do is to create xslt for this xml
and then transform any format xml to this format. But my problem to create
xslt for this one is, when I am displaying the first row and i need to
display column names as attributes to that column elements, After the first
row I just need to display as elements.

Any suggestions how to create xslt for the xml below

*************** *************** *************** **********
<?xml version="1.0"?>
<result state="success" >
<row>
<column name="isbn">0-226-56737-0</column>
<column name="commentte xt">There is a popular and romantic myth about
Rembrandt and the Jewish people. One of history's greatest artists, we are
often told, had a special affinity for Judaism. With so many of Rembrandt's
works devoted to stories of the Hebrew Bible, and with his apparent penchant
for Jewish themes and the sympathetic portrayal of Jewish faces, it is no
wonder that the myth has endured for centuries.
Rembrandt's Jews puts this myth to the test as it examines both the legend
and the reality of Rembrandt's relationship to Jews and Judaism. In his
elegantly written and engrossing tour of Jewish Amsterdam-which begins in
1653 as workers are repairing Rembrandt's Portuguese-Jewish neighbor's house
and completely disrupting the artist's life and livelihood-Steven Nadler
tells us the stories of the artist's portraits of Jewish sitters, of his
mundane and often contentious dealings with his neighbors in the Jewish
quarter of Amsterdam, and of the tolerant setting that city provided for
Sephardic and Ashkenazic Jews fleeing persecution in other parts of Europe.
As Nadler shows, Rembrandt was only one of a number of prominent
seventeenth-century Dutch painters and draftsmen who found inspiration in
Jewish subjects. Looking at other artists, such as the landscape painter
Jacob van Ruisdael and Emmanuel de Witte, a celebrated painter of
architectural interiors, Nadler is able to build a deep and complex account
of the remarkable relationship between Dutch and Jewish cultures in the
period, evidenced in the dispassionate, even ordinary ways in which Jews and
their religion are represented-far from the demonization and grotesque
caricatures, the iconography of the outsider, so often found in depictions of
Jews during the Middle Ages and the Renaissance.
Through his close look at paintings, etchings, and drawings; in his
discussion of intellectual and social life during the Dutch Golden Age; and
even through his own travels in pursuit of his subject, Nadler takes the
reader through Jewish Amsterdam then and now-a trip that, under
ever-threatening Dutch skies, is full of colorful and eccentric
personalities, fiery debates, and magnificent art.
</column>
<column name="">2164</column>
</row>
<row>
<column>0-945103-18-2</column>
<column>This directory offers detailed information on the publishing
programs and personnel of AAUP's 125 member presses. Its features include a
subject guide; complete addresses, telephone and fax numbers, and e-mail
addresses for each press; guidelines for submitting manuscripts; suggestions
for further reading; and an index of press personnel.</column>
<column>340</column>
</row>
</result>

*************** *************** *************** ***********

Thanks in advance
sp

"Stuart Celarier" wrote:
"sp" wrote:
How can I create xsl for the following xml?


Well, that all depends on what result you want (and whether you meant XSL or
XSLT).

Cheers,
Stuart Celarier, Fern Creek

Nov 12 '05 #4
Let me expand on Nigel's comments.

XSLT is a general purpose language for transforming XML documents. Using
XSLT, an XML document can be transformed into XML, HTML 4.01 or arbitrary
text. Moreover, in each format, XSLT will allow you to construct a wide
variety of result documents from a source document. So far you've given an
example of an source document, but there's no way we can guess what you have
in mind for output results from this source document.

Also, by paring examples down to the minimum needed to understand what's
desired, it is easier for people to assist you.

Cheers,
Stuart Celarier, Fern Creek
Nov 12 '05 #5

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

Similar topics

2
2017
by: Mark | last post by:
Hi - I want to allow users of an intranet application, to select their own colours etc. So I have a tbale in my database, which has fields called bgcolour, fontcolour etc. As I want all pages to get the users colours, I have an includes file at the top of each page: <!--#include file="userconfig.asp" --> This is:
2
3954
by: Luke Bellamy | last post by:
Hi, I have been looking for a way to incorperate several different style sheets into a web page (i.e cascading effect). I have looked into the @import statement which seems to do what I want but unfortunately restrictions on the architecture may this unfeasible. With the LINK tag I could use that but I understand older browsers dont support it properly. I will only ever have 2 style sheets. Is there a way to link one style sheet to...
9
8900
by: Paul | last post by:
Hi all Arggghhh........... The problem.....I want the user to be able to create an excel document and name particular cells in the document where they want the data to be placed and then save this out of an XML file or Excel Template file. Next I need to convert a dataset to xml and try and transform this data into the users xml file..........i've seen a few things on this but havent had much success...
1
1982
by: Amanda H. | last post by:
I posted about this a few days ago, and I got a few suggestions that fixed part of my problem. I am using a PHP script to switch external style sheets when the viewer clicks on the style link. Search "Amanda H." in this group and you can view my last post to see the original PHP and html junk. This below is the updated link rel and the meta tags. Before, it wouldn't refresh or change in Opera, Firefox, or IE6/Win & IE5/Mac. The...
3
13607
by: implicate_order | last post by:
Greetings, I'm new to python and am in the process of writing a script to parse some CSV data, spread it across multiple Excel worksheets and then generate charts. I searched the internet to find some place where I could look up a HOWTO doc/recipe to do that using either pyExcelerator or win32com.client. Could someone point me in the right direction? I'm at the stage where the spreadsheet and associated data worksheets
8
41524
by: pamelafluente | last post by:
Hi guys, Is it possible to add "onload" (via Javascript) a new class to the <styleheader section? If yes, how would that be done ? <style type="text/css" media="screen"> .NewStyleClass{ whatever } </style>
10
2686
by: pamelafluente | last post by:
Hi, this time I am trying to add a style on the fly.I wish equivalency with this one (only the menuItemStyle line): <head> <style type="text/css" media="screen"> ... some static styles ... ..menuItemStyle{ background:#ddeeff;border-width:1px;border-style:inset;font-family:Arial;font-size:11px
4
2403
by: fjm | last post by:
Hello everyone. I’d like to know how to handle multiple style sheets. I have css tabs that have a style sheet and then I also have a separate style sheet for the content that goes inside the tab. The problem I am running into is that the tab style sheet uses attributes in the html and body and so does the content style sheet. Each one is specific to its content. The tab style sheet seems to take precedence over the content style sheet because...
4
5635
Frinavale
by: Frinavale | last post by:
So a while ago I created a Tab Strip Control (before the AjaxToolkit had theirs otherwise I would have probably just used theirs). When I looked at the AjaxToolkit control to see how they got around this problem I discovered that they're using Animations. I don't want to bloat my control with the Ajaxtoolkit's Animation stuff though. I guess I should tell you what the problem is. I have a TabStrip custom control. It's a Table that has...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9481
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10155
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10095
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9953
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3655
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.