2014 March 16 |
My goal in writing my resume this way was to make it more dynamic with urls and graphics. I also wanted to have short and long text versions along with more complex html and Java-script ones. Like a program reusing code, I wanted to "import" one basic document have the different versions generated from it. This would provide a project for me to learn how to use XML to do this. I also created a DTD to validate the information is in the format I support (should anyone else want to use my format) along with several XSLT scripts to do the formatting. |
Initially I used the DTD ENTITY to import the source xml
file directly into my xsl scripts, but found that while
Safari, Chrome and IE are ok with reading the xml/xslt's
external (from the server's point of view) entities, Firefox
was not
(see Mozilla
bug 204102). So I use:
to create the html file "manually".
All the browsers seem happy with that.
I am looking into other ways to do this, e.g.
XInclude.
|