RE: [docbook-apps] Weird olink database error

2007-12-03 Thread Pedro Pastor
Hi Eric,

I suffer from the same problem but using the website XSL application. In
this case Saxon issues a HTML DOCTYPE on the top of the file.

I've posted the same question in this forum some weeks ago but I get no
response at all. I hope you were more fortunate than me.

Regards,

Pedro 

-Mensaje original-
De: Johnson, Eric [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 03 de diciembre de 2007 16:51
Para: docbook-apps
Asunto: [docbook-apps] Weird olink database error

In my travails to move a build system from xsltproc based to Saxon based,
I've hit several snags where the output from xsltproc and Saxon are
different using the exact same style sheets. I've been asking questions
here, because I suspect the users here would have more familiarity with the
complete toolset that users on other lists. If that is incorrect, I will
redirect my questions to the more appropriate list.

The latest snag I've hit is that when building the olink target data base
using the xhtml chunking sheet set to only build the target database, Saxon
adds a blank line followed by the XHTML DOCTYPE to the top of the file. I
worked around this by switching to the html version of the style sheet, but
since we generate the docs in xhtml, it would be better if I could use the
xhtml version. Again, I'm using the same customization layer, just different
XSLT processors. Style sheet version
1.73.1 with xsltproc is fine. Style sheet version 1.73.1 with Saxon creates
extra stuff.

Do I need to use the Saxon extensions to clear this up? 

Many Thanks for the help,
Eric

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.13/1167 - Release Date: 03/12/2007
12:20
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.13/1167 - Release Date: 03/12/2007
12:20
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [docbook-apps] Weird olink database error

2007-12-03 Thread Johnson, Eric
The target database is an XML file, not an XHTML file, and should be
generated as such for all of the final output types.

Perhaps this is a bug in the style sheets?
 

-Original Message-
From: Dave Pawson [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 03, 2007 2:24 PM
To: Pedro Pastor
Cc: docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] Weird olink database error

Pedro Pastor wrote:
 Hi Eric,
 
 I suffer from the same problem but using the website XSL 
 application. In this case Saxon issues a HTML DOCTYPE on the top of
the file.

 The latest snag I've hit is that when building the olink target data 
 base using the xhtml chunking sheet set to only build the target 
 database, Saxon adds a blank line followed by the XHTML DOCTYPE to the
top of the file.


Why is this an issue for xml processing? Is it wrong?

http://saxon.sourceforge.net/saxon6.5.5/xsl-elements.html#xsl:output
specifies the xslt output options.

If you ask for xhtml output then Saxon gives it.
If you ask for xml output then no doctype should be output.

http://docbook.sourceforge.net/release/xsl/current/doc/html/chunking.htm
l
provides the docbook customization.




regards

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [docbook-apps] Weird olink database error

2007-12-03 Thread Bob Stayton
The only 'solution' I could come up with was to copy and edit the original 
xhtml/docbook.xsl to remove the doctype-public and doctype-system attributes 
from the xsl:output element in the stylesheet file.  Then the customization 
layer imports this customized version.


Bob Stayton
Sagehill Enterprises
[EMAIL PROTECTED]
- Original Message - 
From: Mauritz Jeanson [EMAIL PROTECTED]
To: 'Johnson, Eric' [EMAIL PROTECTED]; 'docbook-apps' 
docbook-apps@lists.oasis-open.org

Sent: Monday, December 03, 2007 1:22 PM
Subject: RE: [docbook-apps] Weird olink database error



-Original Message-
From: Johnson, Eric

The latest snag I've hit is that when building the olink target data
base using the xhtml chunking sheet set to only build the target
database, Saxon adds a blank line followed by the XHTML DOCTYPE to the
top of the file. I worked around this by switching to the html version
of the style sheet, but since we generate the docs in xhtml,
it would be
better if I could use the xhtml version.



This thread on XSL-list describes what I think is the root cause of the
problem:
http://www.biglist.com/lists/xsl-list/archives/200610/msg00026.html

As you can see, there does not seem to be any solution.

/MJ



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]