xhtml elements and css

  • Thread starter =?iso-8859-2?q?Jacek_Sa=B3acki?=
  • Start date
?

=?iso-8859-2?q?Jacek_Sa=B3acki?=

I have recently took up development with XML. I`m trying to build static
xhtml pages from xml files.
I have two problems:
1. I created a xslt stylesheet transforming xml to xhtml. I made
template generating header of the xhtml file(i.e. : <html> and
<body> tags) and second template generating footer of file(</body> and
</html>). When I try to use saxon with this templates, I'm getting errors:
Error reported by XML parser: Expected "</html>" to terminate element
starting on line
Is there any way to avoid this problems?
2. Do you know any methods, tutorials etc showing the way to connect
contents of xhtml pages(generated from xml) with layout(also described in
xml)?
 
M

Martin Honnen

Jacek said:
I have recently took up development with XML. I`m trying to build static
xhtml pages from xml files.
I have two problems:
1. I created a xslt stylesheet transforming xml to xhtml. I made
template generating header of the xhtml file(i.e. : <html> and
<body> tags) and second template generating footer of file(</body> and
</html>). When I try to use saxon with this templates, I'm getting errors:
Error reported by XML parser: Expected "</html>" to terminate element
starting on line
Is there any way to avoid this problems?

Not really, you need to have the enclosing <html></html> in one
template, then you could have templates to create the <head> section and
the <body> section separately.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top