Showing posts with label xsl. Show all posts
Showing posts with label xsl. Show all posts

Wednesday, June 4, 2008

call back function

Worked on tweaking a report script on clients sites that was in an infinite loop. Not exactly sure how the infinate loop got fixed but it did while I was searching for the problem. Once that was fixed I used a choose statement in the xsl so that if the test came up with NaN or 0 it would put in a dash. After that I had to find a way to find all the distinct websites in a list of website. I used this:



here the concat put a forward slash at the end of the url then the substring-after got everything after the double forward slash and the substring got everthing after the last forward slash that I put in earlier giving me aacatering.net out of http://aacatering.net.


but I still needed to make sites like aacatering.net and www.aacatering.net be the same distinct url. So I had to find a way to use a replace string function in xslt 1.0, but 1.0 does not support a replace function. Do I used a callback php function instead as you can see here:

Tuesday, June 3, 2008

xsl, xml, xslt

today I put together three files. one is a .xml that already has information in it. another is .xsl that I created stylesheet and template for. the other is a index.php that contains the xslt processor. I have the three working good together.

Still not sure where I placed in the disc golf tournament in Flagstaff. I hope they post the placements soon.


Here is another client you should check out: gift4youonline.net

Wednesday, May 28, 2008

amendments to analytics

Today I worked on amendments to the analytics scripts. I got Keywords on analytics to be bolded if they have not been purchased yet and a dash box next to it. get Keywords on analytics to be not bolded if they have been purchased and a check mark box next to them. I did this by giving the purchased keyword a class name and having CSS bold the keyword and a checkbox if it had that class name. have the keyword sorted by name and purchased. I sorted using using and it worked great. making these keywords links to the search engine they came from with the keyword as the searched item. I am doing this using xsl also. I will let you know how it goes.


Please check out one of out clients sites: onestopcaliforniarealtor.com