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

getting started in XML & XSLT

I've never had the need to work with XML, but I believe I now have an
appropriate application. I have time-series data in objects organized as a
tree that I want an ASP.NET program to write out to web pages formatted as a
matrix. It is not a simple matrix, since the number of row heading cells can
vary, but the data cells must be aligned by date (so the heading cells will
not be uniformly sized).

example of typical rows:
3 heading cells, 4 data cells (by year)
2 heading cells, 4 data cells (by year)
etc.

I think what I should do is convert the tree structure to XML and use XSLT
(and/or XSL) to convert to HTML. I am assuming that I can handle the heading
cell problem with XSLT (is this true).

My request is for pointers to a sample ASP.NET program (preferably in C#)
that does something like this, and tips on what XSLT documentation will
bring me up to speed the quickest. I know nothing about XSLT, except that it
transforms XML into other "vocabularies". I've never worked with CSS, so
that is not a good reference point for me. I need to learn XSLT from
scratch. Does XPath fit into this mix?

I haven't looked at the .NET XML class(es) yet, so any time-saving tips in
that regard would also be appreciated.
Nov 11 '05 #1
3 2217
I think getting one/few books on XSLT (and/or XML) will provide the best
benefit. Lots of people liked Michael Kay book (XSLT: programmer's
reference) for the XSLT language (which does not covers .Net
implementation), although you may want also want to get a book that
describes on .Net implementation of XSLT.

As for sample programs, I would search the web. There isn't a lot of
difference between using XSLT in Asp.Net and using XSLT in a stand-alone
program, so most samples can be used as a starting point. www.asp.net site
has a big sample (IBuySpy) that showcase quite a bit of features of Asp.Net,
including a "XSLT module". As a side note, you can also download a free
Asp.Net web development tool (including samples) from this website.

Daniel D.C.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
"Jack Fox" <ja*****@ix.netcom.com> wrote in message
news:bh**********@slb3.atl.mindspring.net...
I've never had the need to work with XML, but I believe I now have an
appropriate application. I have time-series data in objects organized as a
tree that I want an ASP.NET program to write out to web pages formatted as a matrix. It is not a simple matrix, since the number of row heading cells can vary, but the data cells must be aligned by date (so the heading cells will not be uniformly sized).

example of typical rows:
3 heading cells, 4 data cells (by year)
2 heading cells, 4 data cells (by year)
etc.

I think what I should do is convert the tree structure to XML and use XSLT
(and/or XSL) to convert to HTML. I am assuming that I can handle the heading cell problem with XSLT (is this true).

My request is for pointers to a sample ASP.NET program (preferably in C#)
that does something like this, and tips on what XSLT documentation will
bring me up to speed the quickest. I know nothing about XSLT, except that it transforms XML into other "vocabularies". I've never worked with CSS, so
that is not a good reference point for me. I need to learn XSLT from
scratch. Does XPath fit into this mix?

I haven't looked at the .NET XML class(es) yet, so any time-saving tips in
that regard would also be appreciated.

Nov 11 '05 #2
I recommend topxml
www.topxml.com

"SQL Server Development Team [MSFT]" <sq****@microsoft.com> wrote in message
news:ez*************@tk2msftngp13.phx.gbl...
I think getting one/few books on XSLT (and/or XML) will provide the best
benefit. Lots of people liked Michael Kay book (XSLT: programmer's
reference) for the XSLT language (which does not covers .Net
implementation), although you may want also want to get a book that
describes on .Net implementation of XSLT.

As for sample programs, I would search the web. There isn't a lot of
difference between using XSLT in Asp.Net and using XSLT in a stand-alone
program, so most samples can be used as a starting point. www.asp.net site
has a big sample (IBuySpy) that showcase quite a bit of features of Asp.Net, including a "XSLT module". As a side note, you can also download a free
Asp.Net web development tool (including samples) from this website.

Daniel D.C.

--
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
"Jack Fox" <ja*****@ix.netcom.com> wrote in message
news:bh**********@slb3.atl.mindspring.net...
I've never had the need to work with XML, but I believe I now have an
appropriate application. I have time-series data in objects organized as a tree that I want an ASP.NET program to write out to web pages formatted as
a
matrix. It is not a simple matrix, since the number of row heading cells can
vary, but the data cells must be aligned by date (so the heading cells

will
not be uniformly sized).

example of typical rows:
3 heading cells, 4 data cells (by year)
2 heading cells, 4 data cells (by year)
etc.

I think what I should do is convert the tree structure to XML and use

XSLT (and/or XSL) to convert to HTML. I am assuming that I can handle the

heading
cell problem with XSLT (is this true).

My request is for pointers to a sample ASP.NET program (preferably in C#) that does something like this, and tips on what XSLT documentation will
bring me up to speed the quickest. I know nothing about XSLT, except that it
transforms XML into other "vocabularies". I've never worked with CSS, so
that is not a good reference point for me. I need to learn XSLT from
scratch. Does XPath fit into this mix?

I haven't looked at the .NET XML class(es) yet, so any time-saving tips

in that regard would also be appreciated.


Nov 11 '05 #3
Excellent recommendation for a newbie!

"Dino Chiesa [MSFT]" <di****@microsoft.com> wrote in message
news:uh**************@TK2MSFTNGP12.phx.gbl...
I recommend topxml
www.topxml.com

"SQL Server Development Team [MSFT]" <sq****@microsoft.com> wrote in message news:ez*************@tk2msftngp13.phx.gbl...
I think getting one/few books on XSLT (and/or XML) will provide the best
benefit. Lots of people liked Michael Kay book (XSLT: programmer's
reference) for the XSLT language (which does not covers .Net
implementation), although you may want also want to get a book that
describes on .Net implementation of XSLT.

As for sample programs, I would search the web. There isn't a lot of
difference between using XSLT in Asp.Net and using XSLT in a stand-alone
program, so most samples can be used as a starting point. www.asp.net site
has a big sample (IBuySpy) that showcase quite a bit of features of Asp.Net,
including a "XSLT module". As a side note, you can also download a free
Asp.Net web development tool (including samples) from this website.

Daniel D.C.

--
This posting is provided "AS IS" with no warranties, and confers no

rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
"Jack Fox" <ja*****@ix.netcom.com> wrote in message
news:bh**********@slb3.atl.mindspring.net...
I've never had the need to work with XML, but I believe I now have an
appropriate application. I have time-series data in objects organized as a tree that I want an ASP.NET program to write out to web pages
formatted
as
a
matrix. It is not a simple matrix, since the number of row heading
cells can
vary, but the data cells must be aligned by date (so the heading cells will
not be uniformly sized).

example of typical rows:
3 heading cells, 4 data cells (by year)
2 heading cells, 4 data cells (by year)
etc.

I think what I should do is convert the tree structure to XML and use

XSLT (and/or XSL) to convert to HTML. I am assuming that I can handle the

heading
cell problem with XSLT (is this true).

My request is for pointers to a sample ASP.NET program (preferably in C#) that does something like this, and tips on what XSLT documentation
will bring me up to speed the quickest. I know nothing about XSLT, except

that
it
transforms XML into other "vocabularies". I've never worked with CSS, so that is not a good reference point for me. I need to learn XSLT from
scratch. Does XPath fit into this mix?

I haven't looked at the .NET XML class(es) yet, so any time-saving

tips in that regard would also be appreciated.



Nov 11 '05 #4

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

Similar topics

0
by: Thomas Scheffler | last post by:
Hi, I runned in trouble using XALAN for XSL-Transformation. The following snipplet show what I mean: <a href="http://blah.com/?test=test&amp;test2=test2">Test1&amp;</a> <a...
12
by: Sammy | last post by:
Hi, my mind is going crazy. I have tried everything I can think of to no avail. I have tried Disable Output Escaping. I tried to think of a way of enclosing the attribute data in a CDATA...
84
by: Bibby | last post by:
Hi, I'm interested in getting started in the programming world. I've dabbled in C, C++ and VB6. Which would be the best language to focus my attention to regarding the following considerations: ...
12
by: InvalidLastName | last post by:
We have been used XslTransform. .NET 1.1, for transform XML document, Dataset with xsl to HTML. Some of these html contents contain javascript and links. For example: // javascript if (a &gt; b)...
4
by: mark4asp | last post by:
I have an element, report which contains tags which have been transformed. E.g. <pis &lt;p&gt <myXml> <report>This text has html tags in it.&lt;p&gt which but <has been changed to &lt;&gt</report>...
1
by: Anthony Smith | last post by:
Let's say that I have some data like what is listed below. I simply want to get all of he text that is between the html tags. How would I do that with regular expressions or any kind of code. Also,...
2
by: bizt | last post by:
Hi, I am performing an XSLT on a XML feed. The XSLT produces me with PHP code that I eval then insert into my DB. However, the way that the system Im assigned to is setup, I need to convert all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.