[prev in list] [next in list] [prev in thread] [next in thread]
List: xalan-c-users
Subject: Re: XalanTransformer::setUseValidation() seems not to work
From: "David S." <david () solder ! ath ! cx>
Date: 2008-03-08 19:47:15
Message-ID: 15919551.post () talk ! nabble ! com
[Download RAW message or body]
David Bertoni wrote:
>
> David S. wrote:
> > johny.dee wrote:
> > > David Bertoni wrote:
> > > > johny.dee wrote:
> > > > > Hello.
> > > > > I use libxalan-c.so.110 and it seems that
> > > > > XalanTransformer::setUseValidation()
> > > > > does not work.
> > > > >
> > > > > Also, the '-v' switch does not work with Xalan executable. When I use
> > > > > it
> > > > > and
> > > > > I
> > > > > have DTD reference included in XML file (), it only reports error when
> > > > > the
> > > > > file
> > > > > with the DTD does not exist.
> > > > > The DTD reference is of type <!DOCTYPE xxx SYSTEM location> .
> > > > That seems strange. Can you post a small sample document and DTD that
> > > > reproduce the problem?
> > > >
> > > > Dave
> > > >
> > > Thank you for your answer. I am sending XML, DTD and XSL for the case
> > > when
> > > ''Xalan -v' does not work. To be more precise about versions, Xalan says
> > > Xalan version 1.10.0.
> > > Xerces version 2.7.0.
> > > http://www.nabble.com/file/p15222911/xml.tar.gz xml.tar.gz
> > >
> >
> > I'm unable to duplicate the problem with Xalan -v.
> > But I have also been unable to make setUseValidation work correctly.
> > I'm using the same version of Xalan.
> Sorry, but I complete forgot about your question.
>
> It looks like validation was broken by a change in Xerces-C, so please
> file
> a Jira issue and attach the archive you provided.
>
> https://issues.apache.org/jira/browse/XALANC
>
> Dave
> >
>
>
>
My problem with validation was caused by the DTD element in the Xerces DOM
not being wrapped correctly. The following code demonstrates the correct
behaviour when reading the XMl data from a file.
http://www.nabble.com/file/p15919551/validate.cc validate.cc
--
View this message in context: \
http://www.nabble.com/XalanTransformer%3A%3AsetUseValidation%28%29-seems-not-to-work-tp15200976p15919551.html
Sent from the Xalan - C - Users mailing list archive at Nabble.com.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic