[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

NameSpace question?

Subject: NameSpace question?
From: "Qinghui Zeng" <zengqh@xxxxxxx>
Date: Mon, 17 Jun 2002 22:11:44 +0200
xlink.xsd schemalocation
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.