Re: [xslt] transformation removes DOCTYPE declaration form original document

On Thu, Apr 14, 2005 at 11:24:49AM +0200, RadosÅaw Kintzi wrote:
> Nicolas Mailhot napisaÅ(a):
> >You need to specify the target doctype/schema in xslt, it's not assumed to
> >be the same as the original one (one of xslt use cases is to convert from
> >one document type to another)
> >
> > 
> >
> I don't care about DT declaration in target document. I just care about 
> one in original (source)
> document. It has such declaration, which was removed by processor during 
> transformation. 
> In other words: the processor change source document. It is right 
> behavior or it is a bug?

  Right behaviour. The DOCTYPE doesn't exist in the XPath data model. XSLT
can't even "see" it !


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]