Register XSD-Files which includes Other XSD-Files

Hallo
i have two XML-Schemata. One is included by the other.
Here is an example:
This is the XSD, which is included by the other (metadata.xsd):
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
     <!-- Metadatenbereich für das xml-Dokument selbst-->
     <xs:element name="metadata" type="metadataType">
          <xs:annotation>
               <xs:documentation>ROOT ELEMENT von Metadata</xs:documentation>
          </xs:annotation>
     </xs:element>
     <!-- Glossar: Metadatenbereich + Glossarinhalt als Liste von Glossareinträgen -->
     <xs:complexType name="metadataType">
          <xs:sequence>
               <xs:element ref="identifier"/>
               <xs:element ref="category"/>
               <xs:element ref="creator"/>
               <xs:element ref="creation_date"/>
               <xs:element ref="publisher"/>
               <xs:element ref="language"/>
               <xs:element ref="title"/>
               <xs:element ref="basic_year"/>
               <xs:element ref="statistic"/>
This is the XSD, which include the other XSD (lexikon.xsd):
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="unqualified" attributeFormDefault="unqualified">
     <!-- Includieren der Metadaten-->
     <xs:include schemaLocation="metadata.xsd"/>
     <!-- ROOT Element von Lexikon-->
     <xs:element name="lexikon" type="lexikonType" xdb:defaultTable="LEXIKON">
          <xs:annotation>
               <xs:documentation>ROOT ELEMENT</xs:documentation>
          </xs:annotation>
     </xs:element>
     <xs:complexType name="lexikonType">
          <xs:sequence>
               <xs:element ref="metadata"/>
               <xs:element ref="lexikonEntries"/>
          </xs:sequence>
          <xs:attribute name="lexikonKat" type="xs:integer">
               <xs:annotation>
                    <xs:documentation>für spezielle UnterkategorienTypen zu den Lexikas</xs:documentation>
               </xs:annotation>
          </xs:attribute>
     </xs:complexType>
     <!---->
     <!-- GLOSSAR-ELEMENTE -->
     <!---->
     <!-- ExplicationTxt-->
     <xs:element name="explicationTxt" type="explicationType"/>
     <xs:complexType name="explicationType">
          <xs:choice>
               <xs:element ref="verweis"/>
               <xs:element ref="txt"/>
               <xs:element ref="para"/>
Both documents have i copied to a webdav-folder. Now i want register the documents.
BEGIN
DBMS_XMLSchema.registerSchema(
schemaurl=>'http://190.1.1.148:8080/home/DEV/xsd/lexikon.xsd',
schemadoc=>sys.UriFactory.getUri('/home/DEV/xsd/lexikon.xsd'));
END;
The following error-message is displayed:
ERROR at line 1:
ORA-31000: Resource 'metadata.xsd' is not an XDB schema document
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 166
ORA-06512: at line 2
I made the XSD-Files by XMLSpy. The Documents are well-formated and valid.
When i make a new XML-File based ONLY (of course) on lexikon.xsd everything works fine with XMLSpy.
How must i register these documents? Is it possible? Or can´t i register XSD-Files which includes others?
Thank you very much
cu
Heidi

Heidi,
register the metadata.xsd first inthe same way and then register the lixikon.xsd.
it should work.

Similar Messages

  • EbMS with custom xsd document which import other xsd's

    Hi,
    I've created a ebMS partner agreement with a custom document type, which is actually importing other xsd's.
    When trying to create the AQ Adapter service WSDL, it returns a WSDL Read Error, with an error importing schema's. Unable to parse schema ...
    It looks like the imported xsd's are not deployed.
    Anyone seen this before ?
    Thanks,
    Guido

    It is definitely possible to use XSDs that reference other XSDs in Oracle B2B 10g for "Custom Document over ebMS".
    Whether or not it matters whether you use "import" or "include" I'm not sure, but import works as long as your schemas validate end-to-end with namespaces and such.
    You need to ensure that all the paths in your schemas are relative rather than pointing to files on your hard drive's filesystem or on the Internet.
    So you'll have something like this in your root schema:
    <xsd:import schemaLocation="foo.xsd" namespace="http://example.com/foo">
    <xsd:import schemaLocation="bar.xsd" namespace="http://example.com/bar">
    When you create a ZIP file containing all the schemas required, make sure everything is top-level in the ZIP file (i.e., no subdirectories at all). Then you upload the ZIP file and in the next box tell B2B the name of the root schema. For the example above, you'd have a ZIP file containing:
    root.xsd
    foo.xsd
    bar.xsd
    Of course you can have subdirectories and stuff in the ZIP file, but then you'll need to specify relative paths in your root XSD that reflect that.
    Also, if the schemas you are importing in turn import other schemas, you need to alter them to use relative paths and include them in your ZIP file.
    Hope this helps!

  • JAR file which needs other JAR files

    Hi,
    I try to run a jar file, which imports some external classes. These classes are in the library "reader.jar", which is added to the classpath. But if I start it with ...
         D:\TestProject>java -cp ./reader.jar -jar viewer.jar
    ... I get an error: java.lang.NoClassDefFoundError: de/readers/TestReader
    If I copy the file "reader.jar" to "... j2sdk1.4.2/jre/lib/ext", I can start
    "viewer.jar" successfull with ...
         D:\TestProject>java -jar viewer.jar
    Why can't I add "reader.jar" to the classpath or why is it not used by Java?

    When you run JAR's, you can not use the classpath defined at the command prompt (well, you can use it, it is just ignored). The JAR has its own class path defined in its manifest file. Add:
    CLASS-PATH: reader.jar
    to the manifest file of the viewer.jar and it should work.

  • I created a large Flash Pro file which includes buttons and I want to share it with others

    I created a large Flash Pro file which includes buttons and I want to share it with others. It's too big for e-mail and youtube and dropbox don't support fla files. I'm new to Flash and I would appreciate a simple solution!
    Thank you!

    Thank you! But based on the link you gave me it seems like I should only have to do step 1 since I am not trying to embed my file into a web page. After I uploaded the SWF file to the Google Drive it still will not play. It keeps opening in Adobe Device Central and won't play anything. Should I go ahead and do step 2?
    I really just want the video available to share with others. It seems like this shouldn't be very difficult.
    Thanks!

  • Every time I open a pdf file which includes a javascript, a dialogue box pops up. I have a question why 'Do not show this message again' is not working even I checked on the checkbox. It should block the dialogue next time when I open the same pdf file bu

    Every time I open a pdf file which includes a javascript, a dialogue box pops up. I have a question why 'Do not show this message again' is not working even I checked on the checkbox. It should block the dialogue next time when I open the same pdf file but not working. What is the matter and how can I deal with it?

    I am trying it on Adobe Acrobat Reader 9.2.1. Tried to fix Hex code, and also tried 'edit-preference-trust manager'. I focusing on Adobe registries but still couldn't fix the problem.

  • What files are included in the file type "Java" in filter actions?

    Hello,
    I am looking to block inbound attachments that contain any type of Java file, and I am looking to use the "Java" file type as opposed to a regex statement that matches every file type:
    .java
    .jar
    .js
    .jsx
    .jse
    .job
    I've looked in the manual, it does not specify. Does anyone know if using this file type includes all these file extensions? Thanks! 

    Hello Daniel,
    For the list of supported 'filetypes' which the ESA should be able to identify is when you click on attachment-filetypes on the content filter, the drop down would give a general classification as well as the list of supported extension.
    If you do not see the extension within the list here, then the suggested workaround is to use regex matching for the extension file names.
    attachment file info -> filename -> contains -> (?i)(\.(java|jar|js|jsx|jse|job))
    Regards,
    Matthew

  • I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it show

    I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it shows in LR under folders as the F drive and the little green light is on, but LR is showing only the first 6 files and not the remaining 200 or so. How do I expand the F folder to expose all files?

    I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it shows in LR under folders as the F drive and the little green light is on, but LR is showing only the first 6 files and not the remaining 200 or so. How do I expand the F folder to expose all files?

  • Hi, I am getting an 'Error 4810 occurred at Sound File Read Open.vi' for the attached wav file (plus many other wav files). Any ideas?

    Hi,
    I am getting an 'Error 4810 occurred at Sound File Read Open.vi' for the attached wav file (plus many other wav files).
    Any ideas?

    No attachment exists.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Problem with import tag in xsl files and include in xsd files

    Hello,
    I've been developing an application using JBoss as server. Then, i created an especific path for xsd and another path for xsl files. In both cases, i created a main file that include (xsd) or import (xsl) the other files. My problem is that i have to specify the exactly path where the imported xsl or the included xsd files are, even though they are in the same path as the main file. What i want to know is how i say that the other xsd and xsl files are in the same path that the main file that is importing them?
    here's an example of my import and include declarations:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:import href="../server/jboss/deploy/application.ear/pack.jar/xsl/transformer1.xsl"/>
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              elementFormDefault="qualified">
         <xsd:include schemaLocation="../server/jboss/deploy/application.ear/pack.jar/xsd/schema1.xsd"/>
    thanks for your help

    yes, thats not the value returned of
    URL url = this.getClass().
                        getResource("/xsl//transformer.xsl");the expression i posted is an string i'm using to test.... but i think it's not incorrect, because if the files i'm trying to open are not in the path, he throws the following exception:
    java.io.FileNotFoundException: C:\cpqd\isp\tools\third-party\jboss\server\jbossISP1\deploy\cpqd-ispeng-EngEJB-3.3.0.0.ear\cpqd-ispinv-ServiceEJB.jar\xsl\isp_transformer_manufacturer.xsl
        at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:80)
        at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:89)
        at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
        at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xalan.processor.ProcessorInclude.parse(ProcessorInclude.java:323)
        at org.apache.xalan.processor.ProcessorInclude.startElement(ProcessorInclude.java:192)
        at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:668)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:972)
        at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:788)
        at br.com.cpqd.oss.isp.service.adapter.FrameworkAdapter.createExternalData(FrameworkAdapter.java:131)
        at br.com.cpqd.oss.isp.service.message.ExternalDataMDBBean.onMessage(ExternalDataMDBBean.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:458)
        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
        at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:62)
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
        at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:284)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:150)
        at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372)
        at org.jboss.ejb.Container.invoke(Container.java:709)
        at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:928)
        at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1205)
        at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:276)
        at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)
        at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159)
        at org.jboss.mq.SpySession.run(SpySession.java:351)
        at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200)
        at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
        at java.lang.Thread.run(Thread.java:534)and when the files are in the path, he throws the other exception... thats why i think the problem it's not the URL....

  • Unable to compile .c file which includes jni.h

    I have implemented the native method in c program and saved it as JNIDemo.c.The problem is that when I compile the c file I get lots of error regarding jni.h file which I have placed inside the include dir of torbo c.Please tell me- is there any specific path setting of jni.h header file?? How to create the dll file of the JNIDemo.c?

    Suggestions:
    1) post the error messages
    2) post the file (if small enough)
    3) consider asking this in the JNI forum where you have a better chance of bumping into a JNI expert. If you do this, please have each thread refer to the other so as not to get flamed for cross-posting.

  • How to run sqlj.exe to translator Sqlj file which depends other file

    I want to use sqlj.exe to compile sqlj file. I don't know what option can be set for Sqlj.exe can automatically compile sqlj file and it's dependent file(sqlj or java).
    Here is one case:
    There are three six files.
    p1\A.sqlj
    p1\A1.sqlj
    p2\B.sqlj
    p3\C.java
    p3\DI.java
    p4\E.java
    1.the Class A has been declared as follow:
    public class A extends C implements DI{
    And in A.sqlj file, Class B and A1 will be used.
    2.the class E has been declared as follow:
    public class E extends C{
    I want run sqlj.exe as follow:
    sqlj -d=. A.sqlj
    Does it can auto compile C.java, DI.java and A1.sqlj, B.sqlj?
    We known, when java file is compiled, the dependent java file will be auto compiled,
    for example, the command,
    javac E.java
    will compile E.java and C.java.
    But how sqlj.exe automatically compile dependent file.
    Thanks,

    I want to run an exe file Runtime.exec()
    installed in a server from a client machine Server program that executes Runtime.exec() if told to do so by a client via a socket connection
    everyday at a particular (fixed) time.Look at System.currentTimeMillis(), Calendar, Date, Timer...

  • How to export war files without including the library files

    Hi,
    I have several portlets that share the same jar files. In my tomcat, I'd like to load those jar files from shared/lib when tomcat starts up. Currently, to accomplish this, I export the war file from jsc, deploy to tomcat, then manually delete the jar files from WEB-INF/lib.
    Is there a way I can modify some property file so that my war file does not include the shared libraries?
    Thanks,
    Marc

    Hi!
    Rightclick project's root node in Projects window and select Properties. Then go to Build->Packaging and remove unnecessary libraries.
    Thanks,
    Roman.

  • Through Java code I want to execute a exe file which is in aJar file

    I am having some classes and an exe file in a directory. I have made them in to a Jar file. In a class file which is in that jar file i want to execute a Exe file which is also resides in that jar file. Is it possible to exexute that EXE file?
    For Example....
    1. Im having a directory named CLIENT.
    2. In that directory I have 10 clss files and an EXE file.
    3. These class files and EXE files are ziped in to a Jar file.
    4. I have to give the Jar file to my client.
    5. He can put that Jar file where ever he installed my product may be C driver or D drive like that
    Now the problem is...
    I want to execute the Exe File from one of the class where both the exe file and class file resides in the Jar file
    This is my requirment
    Can anyone Help to me to solve this problem?
    Thanks in Advancd
    Ibram Shah.A.M
    ([email protected])

    The answer is to extract the EXE into a temp directory, execute it, and delete it when you're done. For example:
    //This is the path *inside* the JAR file!
    InputStream in = getClass().getResourceAsStream("/resources/myprog.exe");
    OutputStream out = new FileOutputStream("myprog.exe");
    File file = new File("myprog.exe");
    int data;
    while((data = in.read()) >= 0) out.write(data);
    in.close();
    out.close();
    //Execute the EXE here using java.lang.Runtime.exec()
    if(file.exists()) file.delete();
    ...

  • Html files with included php: related files, code color?

    Hi there,
    Wow, what an active forum!
    I have two questions about html files that include php.
    Almost all my html files have this structure:
    <?php
    (php stuff)
    require_once 'somefile.php';
    ?>
    (html stuff)
    My first question is, is there any way for DW CS4 to display the files included this way? At the moment, they don't show up in related file view.
    My second question is, is there any way for DW CS4 to display the html and php code in the file in a pleasant way? The php is not red as it is in pure php files.
    Definitely not wanting to change the way I code or to change the file extensions...
    Instead, wanting to change the SW settings to make my work easier.
    With gratitude,
    Smiles
    Andy

    Hi Brad,
    Thanks for your reply!
    > The PHP coding in a regular HTML page likely won't even work in a  browser
    That's a standard coding technique...LOL... Maybe I didn't explain correctly...
    My hundreds of pages validate XHTML transitional...
    You are quite right that browsers do not interpret php code, but the  browser never sees php code.
    I will try to explain again
    The html file starts with <? php (code> ?>
    When the browser calls the html file, the server knows to process the file as php.
    It processes the php, then returns some html headers, and follows up with all the html that is after the <? php (code> ?> section.
    Thousands of php coders work like this.It's a very efficient way of building a modular website while keeping html extensions.
    By the way, related files already show in CS4 if they are in the html code.
    Are you 100% sure you are correct about the CS5 inclusion situation? You won't know unless you have built an html file that looks like this.
    <?php
    require_once 'myfile.php'>
    ?>
    <body>
    hello html
    </body>
    Your myfile.php might look like this:
    <?php
    echo 'hello php <br />';
    ?>
    If you have never used php in an html file, you will probably need to add something like this to your .htaccess file:
    AddHandler application/x-httpd-php5 .php .htm .html
    It tells your server that php processes not only php files but also html files.
    Warmest wishes to all,
    Andy

  • How to call Fortran .dll file that using other library files?

    Hi,
    I am trying to do some arkward tasks using LabView, and I am desperately need help....
     A little bit background:
    1. My co-worker has some code written in Fortran, where he called other libraries (many from CERNLAB or PAW). Those stuffs are pretty powerful in mathmatical calculation and simulations.
    2. In some of my LabView code, I need to call his Fortran source code in order to do some complicated calculations. I have no capablility to translate his Fortran code to Labview (or is it even possible??), so we end up with trying to use "Call library function node" where I just provide input/outputs to communicate with his code. The idea sounds simple enough?
    3. We complie the Fortran code into .dll, and then specifiy the dll in "Call library function node". The first try with a very simple Fortran code, something like c = a+b*a, was sucessful. The dll file and Call lib function worked good. It's sort of proved the concept.
    4. Now I am trying more complicated Fortran code (say Test.dll), which calling other library (.lib files) that using typical "call xxx(a,b,c)" line, and my nightmare started....  It seems nothing was excuted when I call Test.dll in LabView.
    Questions:
    1. How do LabView know if the Test.dll code needs functions from other .lib files? Do I need to copy all the .lib files to a specific folder?
    2. When I create .dll file, for LabView to be able to use it, are there any special requirement on the way the .dll is compiled?
    3. Seems there is mismatch btw the data type in Fortran and LabView. For example, LabView's  Signed 8-bit Integer seems different with a integer in Fortran. How can i know the correlation btw data type in different langurage, i.e. LabView vs Fortran?
    4. Are there any good examples that I can take a look?
    I would highly appreicate any suggestions/helps!
    Rgds,
    Harry

    You are aware that Intel Visual Fortran is the successor to Compaq Visual Fortran (I think you made a mistype with the Virtual)? So an upgrade might be at its place.
    Anyhow I'm really not familiar with Fortran at all, but lib files are usually compiled into an EXE or DLL and not loaded dynamically. 1) 
    So there should be no problem with locating those libs. What most likely is a problem are other DLL dependencies such as any Fortran Runtime library or possibly other third party DLLs the more advanced code in your DLL might be using.
    Typically most compilers can be configured to link the runtime library code statically into the DLL, as altenbach reports for the Intel compiler, otherwise you must make sure to install the  redistributable Fortran Runtime Library for your compiler. Besides that you must make sure to find out what other runtime dependencies your code might have and install them.
    1) One exception I know of is LabWindows CVI which allows to also load lib files dynamically. This is supposedly a legacy feature from LabWindows for DOS, which allowed that feature to simulate dynamic module loading in order to swap modules at runtime to work around the 640k memory limitation of DOS.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for