xhtml elements and css

Joined
May 31, 2004
Messages
2
Reaction score
0
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)?
 

Martin Honnen

Usenet Archive
Joined
Apr 8, 2000
Messages
6,174
Reaction score
0
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

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top