By request, every XSL transform on PORDL now comes with its own mobile-ready webpage.
Example:
Pastor's Blog
You can point your cell phone directly to the page or setup a sub-domain for your website to point to the page.
It is also really easy to create a mobile website by adding html navigation to the top or bottom of your XSL stylesheets and pointing the nav links to other PORDL transforms.
Sunday, March 13, 2011
Sunday, February 27, 2011
Nested List Sitemap From a Flat XML File
I needed to build a Sitemap where each sub-level is indented more than the top levels...a very typical sitemap. However, my XML file was not in the order it needed to be output to the page and it was a flat XML file, so I couldn't pull the hierarchy from the XML.
I decided to do a template for each level of the sitemap and trigger each template recursively at each level till no more items were available on the level.
It took about 15 hours of staring at code that didn't work till I got it right.
Here is my solution:
Nested Sitemap from a Flat XML File
I decided to do a template for each level of the sitemap and trigger each template recursively at each level till no more items were available on the level.
It took about 15 hours of staring at code that didn't work till I got it right.
Here is my solution:
Nested Sitemap from a Flat XML File
Thursday, February 17, 2011
Creating SQL Statements from an XML File
I worked up an XSL Stylesheet to transform a two-column Excel file into a SQL Update Statement.
Here is my order of events:
I saved the Excel File as a .csv file.
I used creativyst.com to change the .csv to an XML file.
I put a XML header on the file:
I saved the XML file to a web server where I could access it with a URL.
I used PORDL to create a new feed transform with the following XSL:
The output was a clean SQL Update Statement I could use to do a mass update of records on an OsCommerce database.
Here is my order of events:
I saved the Excel File as a .csv file.
I used creativyst.com to change the .csv to an XML file.
I put a XML header on the file:
I saved the XML file to a web server where I could access it with a URL.
I used PORDL to create a new feed transform with the following XSL:
The output was a clean SQL Update Statement I could use to do a mass update of records on an OsCommerce database.
Friday, February 11, 2011
Grouping XSL Search Results
How to group XML items using the Muenchian Method
It took a while to figure this out because no one on the internet had a really good example that was easy to port over for my uses. So, I created an XSL sheet that can easily be ported to most any application.
It took a while to figure this out because no one on the internet had a really good example that was easy to port over for my uses. So, I created an XSL sheet that can easily be ported to most any application.
Saturday, January 29, 2011
Embed Any Google News Search Result on Any Website or Blog
Using PORDL.com, you can easily embed any Google News Search result on any website or blog. Create your RSS feed using the following format:
http://news.google.com/news?q=web&output=rss
where the "web" portion of the string is your web search terms.
The output can look like the following example, or any way you desire:
http://pordl.com/transform.aspx?id=528
depending on the XSL template you use.
http://news.google.com/news?q=web&output=rss
where the "web" portion of the string is your web search terms.
The output can look like the following example, or any way you desire:
http://pordl.com/transform.aspx?id=528
depending on the XSL template you use.
Tuesday, January 18, 2011
Site Map XSL : Valid for SiteMap.org Specification XML
I was chasing my tail for a while trying to figure out why my XSL stylesheets were not working with every XML sitemap I tried. The problem was, every XML sitemap I tried was using an invalid XML namespace. They were using a namespace hosted on Google at http://www.google.com/schemas/sitemap/0.84. This namespace is invalid. Some were referencing http://www.google.com/schemas/sitemap/0.9 which is also invalid. The correct working namespace to use is http://www.sitemaps.org/schemas/sitemap.0.9 .
Here is a really simple version of the XSL required to render the Site Map XML (with valid namespace) as HTML:
I, also, added this XSL as one of the many default XSL choices when setting up feed transforms on PORDL.com.
Here is a really simple version of the XSL required to render the Site Map XML (with valid namespace) as HTML:
I, also, added this XSL as one of the many default XSL choices when setting up feed transforms on PORDL.com.
Monday, January 10, 2011
Subscribe to:
Posts (Atom)