D
danmc91
Hello,
I'm new to xml and xslt but that should be obvious from my question.
I'm trying to help my wife set up some web pages with some of her art
work and what I'm trying to do is find a way to get all of the
information about the pictures in an XML file and then use xslt to
produce some different html files.
My first problem is I can't seem to figure out how to get this to
appear at the top of my output file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The next problem I'm having is how to include an extra file in the
output. I had some very old scripts which could parse html files with
server side includes and produce static html files that didn't need a
server with SSI enabled. I'd been using this mechanism to include a
standard footer and some navigation links on all web pages. Since I'm
looking to migrate towards xml and xslt I'm trying to find a way to
still include the contents of a file in the output.
The .dtd file .xsl file, and input .xml file's I have so far are at:
http://home.comcast.net/~dmcmahill/tmp/gallery.dtd
http://home.comcast.net/~dmcmahill/tmp/gallery.xsl
http://home.comcast.net/~dmcmahill/tmp/drawings1.xml
xsltproc gallery.xsl drawings1.xml > drawings1.shtml
seems to give the right thing except for the DOCTYPE bit and I still
need to run my homebrewed SSI processor to convert the .shtml file to
..html.
Any suggestions? Am I going about this completely the wrong way? For
how much programming in all sorts of languages, I'm finding xslt rather
confusing...
-Dan
I'm new to xml and xslt but that should be obvious from my question.
I'm trying to help my wife set up some web pages with some of her art
work and what I'm trying to do is find a way to get all of the
information about the pictures in an XML file and then use xslt to
produce some different html files.
My first problem is I can't seem to figure out how to get this to
appear at the top of my output file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The next problem I'm having is how to include an extra file in the
output. I had some very old scripts which could parse html files with
server side includes and produce static html files that didn't need a
server with SSI enabled. I'd been using this mechanism to include a
standard footer and some navigation links on all web pages. Since I'm
looking to migrate towards xml and xslt I'm trying to find a way to
still include the contents of a file in the output.
The .dtd file .xsl file, and input .xml file's I have so far are at:
http://home.comcast.net/~dmcmahill/tmp/gallery.dtd
http://home.comcast.net/~dmcmahill/tmp/gallery.xsl
http://home.comcast.net/~dmcmahill/tmp/drawings1.xml
xsltproc gallery.xsl drawings1.xml > drawings1.shtml
seems to give the right thing except for the DOCTYPE bit and I still
need to run my homebrewed SSI processor to convert the .shtml file to
..html.
Any suggestions? Am I going about this completely the wrong way? For
how much programming in all sorts of languages, I'm finding xslt rather
confusing...
-Dan