Monday, October 28, 2013

Austin Iwama Aikido site - initial post

Here's what I did tonight:
I worked on creating this page:
http://www.iwama-aikido.com/westlake/instructors.html
The folder that this is in http://www.iwama-aikido.com/westlake/ is not yet linked to from the main site, so this work is so far 'un-published.' What I'm doing is setting up these folders for the dojos so that once I get them relatively useable, then I can link to them from the main site.
So in creating the Westlake instructors page, I hade to take the existing page for the Westlake instructors and modify it. That modification involved stripping out the header and footer, cleaning up the HTML and then pasting that into an XML file that includes the required XML for OUCampus.
I then uploaded the XML file (file extension is PCF, which is a proprietary OUCampus XML application) to the westlake folder. I then started to have problems publishing the file. It kept telling me there was an error, but wasn't very specific about the problem.
I stripped out everything I had written and pasted in everything from another page that I knew worked. That seemed to work, so then I stripped out all the content. That worked so I started adding content piecemeal. That caused an error, so I knew there was a problem with the content itself. I discovered, that although I thought I had cleaned the HTML, I did not format it to be XHTML, which is very important, since this is going in an XML file. The main problem was that the one-sided tags were not self-closing. so I had to go though and do a find an replace on the one-sided tags. I kept forgetting some, so I kept running into problems. Honestly, who uses horizontal rules? (<hr />)
Once I got that sorted, I did some formatting so that the pictures and the paragraphs looked decent. I then updated the navigation to point to this new page.
So, each dojo will have its own separate header and navigation. These will be defined in the XSL file inside each of the separate dojo directories.
After I was satisfied with the Westlake folder (for now) I created an Austin folder and copied the Austin pages and XSL file to the new Austin directory. I needed to update the image src urls to be root relative because the referencing files had moved.
I then updated the navigation for both dojos to point to the new locations.
To-do:
set up the htaccess file to create a temporary redirect to the /austin and /westlake directories from the current pages.
create a header and navigation for the non-dojo, informational pages
update the media and testing pages to use the new XML formatting