[xsl] NameSpace question?

Subject: [xsl] NameSpace question?
From: "Qinghui Zeng" <zengqh@xxxxxxx>
Date: Mon, 17 Jun 2002 22:11:44 +0200
I have a question with XSL, that is:

I write a XML document(temsis.xml) having multiple namespaces, the root 
element has following attributes:
--------------------------------------------------------
<Temsis xmlns="http://www.mysite.com/Temsis"; 
xmlns:xlink="http://www.w3.org/TR/xlink"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://www.w3.org/TR/xlink xlink.xsd
 http://www.mysite.com/Temsis Temsis.xsd">


The schema (temsis.xsd) head part is:
--------------------------------------------------------
<xs:schema targetNamespace="http://www.mysite.com/Temsis"; 
xmlns="http://www.mysite.com/Temsis"; 
xmlns:xlink="http://www.w3.org/TR/xlink"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
elementFormDefault="qualified" 
attributeFormDefault="unqualified">

 <xs:import namespace="http://www.w3.org/TR/xlink";
  schemaLocation="xlink.xsd"/>


The xlink.xsd head :
--------------------------------------------------------
<schema targetNamespace="http://www.w3.org/TR/xlink"; 
xmlns="http://www.w3.org/2001/XMLSchema"; 
xmlns:xlink="http://www.w3.org/TR/xlink"; 
elementFormDefault="qualified">


I use such a XSL file(temsis.xsl):
--------------------------------------------------------
<xsl:stylesheet version="1.0" 
xmlns="http://www.mysite.com/Temsis"; 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
 <xsl:template match="/">
  <html> <head/>
   <body >
    <xsl:apply-templates select="Temsis"/>
   </body>
  </html>
 </xsl:template>
 <xsl:template match="Temsis">
    ......................
 </xsl:template>
</xsl:stylesheet>


Unfortunately, IE display nothing, if I delete all the attributes 
of the root element in temsis.xml, just left <Temsis>, then it 
works well. I don't know what's the reason. 

Hope someone can help me!

Best.

Qinghui



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread