Jump to content

XInclude


iristz

Recommended Posts

hi,i am writing an XML schema file. In the XML whihc uses the schema, I would like to use in the XML Include (XInclude) - but somehow i get error when i put XInclude instead of the element itself that is written in the schema ... I know i can use SW solution by extracting the XInclude, but i would like to know if there is a simpler solution ...thanks :) Iris

Link to comment
Share on other sites

hithanks for the answer ...i use the include schema, and using SW with xml Lib - it workswhat does not work - is using it through the xmlSPYbelow is the schema i want - it consist of scenario_list whihc is a list of scenarios, and using an xml schema for the scenario ...i am not sure whether the problem is mine, or maybe it's a feature within xmlSPY ...thanks again Iris?xml version="1.0" encoding="utf-8"?><!-- edited with XMLSpy v2006 U (http://www.altova.com) by Iris (SW) --><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xi="http://www.w3.org/2001/XInclude"> <xs:include schemaLocation="schemaScenario.xsd"/> <xs:element name="scenario_list"> <xs:annotation> <xs:documentation/> <xs:appinfo source="scenario">Comment describing your root element</xs:appinfo> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="scenario" type="scenarioType" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>

Can't you just use the include element or you have something non-schema thing to include?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...