In all generated pages the first line always starts with a space. Even if I don't use a master on a particular page, and my .ADP looks like:
<?xml version="1.0"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"file:///d:/cygwin/usr/local/lib/xml/dtd/xhtml/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>....
I end up with this when the page is actually generated:
<?xml version="1.0"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"file:///d:/cygwin/usr/local/lib/xml/dtd/xhtml/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>...
</pre>
Tidy and xsltproc do not like this:
$ xsltproc xhtml2fo.xsl table-all.html > table.fo
table-all.html:1: error: XML declaration allowed only at the start of the document
<?xml version="1.0"?>
^
unable to parse table-all.html
Of course I can always remove that little space using sed or some other filter before passing the data onto xsltproc, but would one think there should be a way to simply not have it there? My guess is that ACS Templating puts it in, I just can't figure out why...