473,394 Members | 1,869 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,394 software developers and data experts.

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="commenttext">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 1924
"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="commenttext">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="commenttext">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
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...
2
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...
9
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...
1
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. ...
3
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...
8
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{...
10
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 ......
4
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. ...
4
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...
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
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...
0
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,...
0
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...
0
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...
0
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...
0
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...

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.