[xsl] convert xml with schema to html with xslt

Subject: [xsl] convert xml with schema to html with xslt
From: Lajos Joo <lajosjoo@xxxxxxxxx>
Date: Mon, 21 Dec 2009 02:21:06 -0800 (PST)

I have a problem. I have a small xml file which has a schema declaration in the root element. I cannot convert it to html with an xslt file. If i remove the schema declaration the conversion is fine.
Please suggest me how to correct this. 
I have included a shcema import but it didnt help:
<xsl:import-schema namespace="urn:Verlag" schema-location="urn:Verlag"; />

The xml file looks like this:
<LOSCHNIGG xmlns="urn:Verlag" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="urn:Verlag";>

The xml works fine and the xsd is in the right place.

The xsl looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns="http://www.w3.org/1999/xhtml"; version="2.0">
<!--    <xsl:import-schema namespace="urn:Verlag" schema-location="urn:Verlag"; />-->

	<xsl:output encoding="UTF-8" indent="yes" method="html" version="1.0" />
	<xsl:template match="@*|node()">
	      <xsl:apply-templates select="@*|node()"/>
		<xsl:template name="paragraph" match="para">
			<xsl:element name="p">

	<xsl:template match="/">
		<xsl:element name="html">
			<xsl:element name="head">
				<xsl:element name="title">Preview</xsl:element>

Thank you!

Current Thread