This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
RE: [docbook] docbook xsl and MSXL failure
- From: "Robert Shields" <rshields at star dot net dot uk>
- To: <ed dot nixon at LynnParkPlace dot org>
- Cc: <docbook at lists dot oasis-open dot org>
- Date: Wed, 8 Oct 2003 10:08:12 +0100
- Subject: RE: [docbook] docbook xsl and MSXL failure
Hi,
I have managed to suppress the error by turning off validateOnParse on
the docbook XML DOM. eg:
(sorry, vbscript)
Function TransformXml (sXmlPath, sXslPath, aParams, byRef sErr)
Dim oTemplate
Dim oXsl
Dim oXml
Set oTemplate = Server.CreateObject("Msxml2.XSLTemplate.4.0")
Set oXsl =
Server.CreateObject("Msxml2.FreeThreadedDOMDocument.4.0")
Set oXml = Server.CreateObject("Msxml2.DOMDocument.4.0")
Dim oXslProc
oXsl.async = False
oXsl.resolveExternals = False
oXsl.load sXslPath
oXml.async = False
oXml.resolveExternals = False
oXml.validateOnParse = False 'this fixed the error
oXml.Load sXmlPath
On Error Resume Next
Set oTemplate.stylesheet = oXsl
Set oXslProc = oTemplate.createProcessor()
oXslProc.input = oXml
If IsArray(aParams) Then
Dim i
For i=lBound(aParams) to uBound(aParams)
oXslProc.addParameter aParams(i,0), aParams(i,1)
Next
End If
oXslProc.Transform
TransformXml = oXslProc.output
If Err.number <> 0 Then
sErr = Err.Description
End If
End Function
Regards,
Rob Shields
-----Original Message-----
From: ed nixon [mailto:ed.nixon@LynnParkPlace.org]
Sent: 06 October 2003 16:25
To: Robert Shields
Cc: docbook@lists.oasis-open.org
Subject: Re: [docbook] docbook xsl and MSXL failure
I've asked precisely this question a number of times in the past and
received no specific solution.
After looking at the structure and design of the style-sheets, I could
only conclude that the MS parser was committing an error in relation to
INCLUDEs and IGNOREs that affect gets defined or not among the sheets
and their contents.
Some people have said they have no problems with DocBook and MSXL, but
they don't explain why this error occurs or how to avoid it. I use
alternative parsers to work with DocBook.
...edN
Robert Shields wrote:
> Hi,
>
> I'm trying to transform a docbook document using the docbook xsl
> files, version 1.62.4 (I'm transforming against the file
> docbook-xsl-1.62.4\fo\docbook.xsl)
>
> I get the error message:
>
>
> Error while parsing
> "file:///C:/work/hacks/documentation/docbook-xsl-1.62.4/common/l10n.xm
> l"
> . The element 'l:i18n' is used but not declared in the DTD/Schema.
>
>
>
> Does anyone know how I can fix this?
>
> Thanks,
>
> Rob Shields
> Software Engineer
> Star Internet Ltd
>
> e - rshields@star.net.uk
> t - 01285 880085
> w - http://www.star.net.uk
>
>
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> _____________________________________________________________________
>
> To unsubscribe from this list, send a post to
> docbook-unsubscribe@lists.oasis-open.org, or visit
> http://www.oasis-open.org/mlmanage/.
>
>
>
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
_____________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
_____________________________________________________________________
To unsubscribe from this list, send a post to docbook-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.