Re: [xsl] XML source with DOCTYPE declaration

Subject: Re: [xsl] XML source with DOCTYPE declaration
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 24 Apr 2001 17:36:48 +0100
But Zeljko, check the further messages between David and me on this thread -- there may be other tricks you can try.

It does seem to be an unfortunate (if unexpected) design "feature" of XHTML that documents using the tag set, but without the DTD, have different names (are in different namespaces) from valid XHTML.

Maybe the solution to your problem is to make sure your well-formed documents all say

<html xmlns="[insertCorrectNamespaceHere]">...</html>

...if you can do that...

-- Wendell

At 09:48 AM 4/24/01, Eric wrote:
David Carlisle wrote:
> > Do you maybe know of a machanism in XSLT to check whether a DOCTYPE was
> > used in the XHTML file or not?
> There is no such switch as the dtd is not part of the XPath data model
> (As has been stated already many times in this thread).

This could be done, though, using a specific (non standard) parser such
as the one I have described a while ago on [1], but it's
probably not worth the pain in this specific case.


> David
See you in Hong Kong for www10:
Eric van der Vlist       Dyomedea           

XSL-List info and archive:

====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================

XSL-List info and archive:

Current Thread