RE: [oXygen-user] html does not allow namespace declaration on the rootelement [SEC=UNCLASSIFIED]

Hi Xmlizer, I believe that the official reference to XHTML is to a DTD such as: <?xml version="1.0" encoding="iso-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> ... </html> You should be able to use this format. John -----Original Message----- From: oxygen-user-bounces@oxygenxml.com [mailto:oxygen-user-bounces@oxygenxml.com] On Behalf Of mozer Sent: Thursday, 3 July 2008 2:40 AM To: Oxygen User Subject: [oXygen-user] html does not allow namespace declaration on the rootelement Dear, with the following file <?xml version="1.0" encoding="UTF-8"?> <html xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/1999/xhtml"></html> I have the following error E [Xerces] Attribute "xmlns:xsd" must be declared for element type "html". Can you explain me how to workaround this ? Regards, Xmlizer

Hi all, I thought that I sent this to the list yesterday but it didn't arrive so I am sending it again. Is there a problem with the list or did my message get lost somehow? Thanks. John
-----Original Message----- From: Hockaday John Sent: Monday, 17 November 2008 11:26 AM To: oxygen-user@oxygenxml.com Subject: How to not validate an XML document that is called via the 'document' function in XSLT 2.0 [SEC=UNCLASSIFIED]
Hi all,
I have an XSL that calls an XML document using the 'document' function. The document that I call has an incorrect 'schemaLocation' statement in it. This makes the XML document invalid. The document itself is well formed and does validate if one changes the schemaLocation to point to a real location of the included XSDs.
I am trying to get the custodians of this XML document to change the schemaLocation to fix this problem. Meanwhile, I would like to be able to call this document using the 'document' function without validating it. Can this be done in XSLT 2.0 or Oxygen? If so what parameter settings do I make in my XSL or Oxygen.
An example of the XSL is below.
Thanks.
John
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="text"></xsl:output> <xsl:template match="/"> <xsl:param name="URL">http://www.isotc211.org/2005/resources/Codelist/gmx Codelists.xml</xsl:param> <xsl:value-of select="$URL"/>
<xsl:value-of select="document($URL)//CT_CodelistCatalogue/name" ></xsl:value-of>
</xsl:template> </xsl:stylesheet>

Hello John, We had some problems with the mailing list server but they seem to be fixed now. We are sorry for the delay. Regards, Sorin John.Hockaday@ga.gov.au wrote:
Hi all,
I thought that I sent this to the list yesterday but it didn't arrive so I am sending it again.
Is there a problem with the list or did my message get lost somehow?
Thanks.
John
participants (2)
-
John.Hockaday@ga.gov.au
-
Sorin Ristache