Yes, this implementation of xsl:document only works with version 1.1 and
was replaced with xsl:result-document is xslt 2.0. If you are truly using
Saxon 9 to parse your XML, you can try changing the version of your
stylesheet to 2.0 and then change xsl:document to xsl:result-document.
I've lost track of how you are parsing your file. Are you trying to open
it directly in IE and expecting it to render or are you transforming your
file within Oxygen and using Saxon? If you are opening the file directly
in IE, IE will use the built-in MSXML parser and it cannot parse version
1.1 of a stylesheet, only 1.0. And this implementation of xsl:document is
not part of the 1.0 specification.
Mark
On Wed, 31 Mar 2010, Anna Kresmer wrote:
> Thanks a lot! I moved the doctype-public attribute to the xsl:output
> element and that has made that error message go away. I also removed the
> reference to the Saxon name space, which does not appear to have caused a
> problem. The bit of code now reads like this:
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.1">
> <xsl:strip-space elements="*"/>
> <xsl:output encoding="ISO-8859-1" doctype-public="-//W3C//DTD HTML 4.0
> Transitional//EN" method="html"/>
>
>
> However, fix one error and another one makes itself known. I now have a
> pair of errors linked to 2 xsl:document attributes. The lines of code look
> like this:
>
> <xsl:document method="html" href="{$file}.html">
>
> <xsl:document method="html" href="{$file}recordgrp{$recordgrp}.html">
>
> In both cases, there is a jagged red line under the tml">. Each of these
> lines of code are part of sections that instruct the stylesheet to create
> a new page (either for the collection-level description or for each series
> of the finding aid).
>
> The error codes linked to each of them look like this:
>
> Description: Attribute @method is not allowed on element <xsl:document>
>
> Description: Attribute @href is not allowed on element <xsl:document>
>
> I do not have a clue what to do with this one. Any ideas?
>
> Sorry to take up so much time,
> Anna
>
|