XSL Help
-
I have to format some data into a table. It will be column driven rather than row driven. How hard is this? Can anyone show me an exmple? Station 1 Station 2 Station 3 WKRP WDC1 WSSX Talk Rock Top 40 I can implement it either way, but I want my XML file to be logical. 1 WKRP Talk Oh, and oh, lawd, can someone send me a link to a site that will list XSL help, like a cheatsheet of what all the tags are/mean? Thanks! Lilian
-
I have to format some data into a table. It will be column driven rather than row driven. How hard is this? Can anyone show me an exmple? Station 1 Station 2 Station 3 WKRP WDC1 WSSX Talk Rock Top 40 I can implement it either way, but I want my XML file to be logical. 1 WKRP Talk Oh, and oh, lawd, can someone send me a link to a site that will list XSL help, like a cheatsheet of what all the tags are/mean? Thanks! Lilian
Lilian, Best thing that I can recommend is that you pick up a good book on the subject. My 2 personal favourites are: o XML for ASP.NET Developers [ does an excellent job in explaining XSLT and XPath ] o XSLT 2nd Edition (Worx Press) [ XSLT? What do you want to know :) ] In addition to that, here's a neat link to test out your newly found XPath'ing skills... http://staff.develop.com/aarons/bits/xpath-builder/xpath.htm and a couple of expressions to play around with... GETTING THE COMMENT //comment() //comment()[position()=1] GETTING THE 3 SIBLINGS UNDER THE COMMENT //comment()[position()=1]/following-sibling::* OR JUST THE MIDDLE ONE //comment()[position()=1]/following-sibling::LineItem[position()=2] //comment()[position()=1]/following::LineItem[position()=2] HTH :)
-
I have to format some data into a table. It will be column driven rather than row driven. How hard is this? Can anyone show me an exmple? Station 1 Station 2 Station 3 WKRP WDC1 WSSX Talk Rock Top 40 I can implement it either way, but I want my XML file to be logical. 1 WKRP Talk Oh, and oh, lawd, can someone send me a link to a site that will list XSL help, like a cheatsheet of what all the tags are/mean? Thanks! Lilian
Download this from MS. Quite handy reference. http://msdn.microsoft.com/downloads/samples/internet/default.asp?url=/downloads/samples/internet/xml/multiple\_views/default.asp :cool: Dan ---