Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Member
Posted
Hi,

I am having a problem when I'm trying to import schema from an imported schema:

main.xsd

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.sample.org/sa" elementFormDefault="qualified" targetNamespace="2" xmlns:a="http://www.sample1.com/two/a" xmlns:b="http://www.sample1.com/two/b" xmlns:c="2">

<xs:import namespace="1" schemaLocation="d.xsd"/>
<xs:include schemaLocation="e.xsd"/>

<xsl:element .. ref="a:test"


d.xsd

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.sample.org/sa" elementFormDefault="qualified" targetNamespace="1" xmlns:a="http://www.sample1.com/two/a" xmlns:b="http://www.sample1.com/two/b" xmlns:c="1">

<xs:import namespace="2" schemaLocation="e.xsd"/>


<xsl:element .. ref="a:test"


NOTE: can't use <xs:include since d.xsd and e.xsd have different target namespace.


e.xsd

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.sample.org/sa" elementFormDefault="qualified" targetNamespace="2" xmlns:a="http://www.sample1.com/two/a" xmlns:b="http://www.sample1.com/two/b" xmlns:c="2">


<element test type=xs:string


I'm having an error in d.xsd that the element in e.xsd can't be access.
 
Posts: 1 | Registered: October 10, 2008Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community