Weird behavior using "Open schema type..."

I'd like to check if I'm doing something wrong or it's a bug.
Steps to reproduce:
1- Create a ODSI project;
2- Create a folder and name it "schemas";
3- Create a "test.xsd" schema into "schemas" using this code:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
          xmlns="http://schemata.petrobras.biz/corp/core-types/1.0"
          elementFormDefault="qualified"
          xmlns:xml="http://www.w3.org/XML/1998/namespace"
          attributeFormDefault="unqualified">
<xs:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xs:complexType name="TextLineType">
<xs:simpleContent>
<xs:extension base="xs:normalizedString">
<xs:attribute ref="xml:id"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute ref="xml:space"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:schema>
4- Save your project;
5- Right click "schemas" folder and select "Open Schema Type...";
6- There's no matching types!
7- If you remove all three attributes from extension tag you will have the matching type.
Am I doing something wrong with those attributes?

You can declare it and use it. The only problem seems to be with "right-click -> Open Schema Types..."
<xs:complexType name="TextLineType">
<xs:simpleContent>
<xs:extension base="xs:normalizedString">
<xs:attribute ref="xml:lang"/>
<xs:attribute ref="xml:space"/>
<xs:attribute ref="xml:id"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:element name="TextLine" type="TextLineType"/>
declare function tns:test() as element(ns:TextLine){
<ns:TextLine xml:lang?="" xml:space?="preserve" xml:id='something'>
</ns:TextLine>
};

Similar Messages

  • Weird behavior in opening Aperture images in Photoshop

    I have found a lot of really weird behavior when opening Aperture images in an external editor (in my case, Photoshop, so I'll use PS to refer to it):
    1) If the master image is opened in PS, a new version is created when the file is opened, not saved. So quitting PS without saving leaves you with a new version of the file, regardless of whether you actually saved any changes or not.
    2) If a version (not the master) is opened in PS, a new version is not created, either on open, or on save. So in other words, changes to that version in PS when saved overwrite that version, and the previous condition of that version is lost (with respect to versioning).
    3) If multiple versions of the same image are opened simultaneously in PS, there doesn't seem to be a way to tell the difference between them in PS, except for visually (possibly meta-data, but I haven't checked that, nor would I want to be forced to). The file names of all versions are exactly the same.
    I'm looking for feedback from anyone out there who can explain why this isn't completely quacky version control. I've been using version control almost my entire career (as a software programmer) and here's how I have seen almost invariably version control work:
    1) New versions of files are always created upon commit, i.e. saving of the file, not on opening a file. (Do not confuse this with working copies, think about what is present in the repository).
    2) Opening / editing any file version is never destructive. Any change to that file version that is saved (committed) results in a new version, not an overwrite to the same version.
    Aperture's interface basically has combined what traditional version management has represented separately, that being the client and repository views of a project. They are showing all versions of a file simultaneously. This is fine, but I'm really not liking the fact that some changes create new versions, other changes overwrite versions, and one case, merely opening the file creates a new version, whether there are any changes saved or not. In addition, when working with multiple versions in the editor, the file name and/or interface doesn't give any indication of what version you are working with. Easy to say that's the fault of the external editor, but I disagree -- all external editors are going to work with filenames, so Aperture should produce a unique namespace for any file version so that any external tool will be able to distinguish (visually) one file from another.
    Is this completely wacky version management, or is it just me?
    Brad
    Powerbook G4-1.33GHz-17" / Powermac G4-1.4GHz   Mac OS X (10.4.2)   PB: 1GB RAM, Radeon 9600-64MB / PM: 1.25GB RAM, Radeon 9000Pro-128MB

    Hi Bradley,
    Due to the way I personally use Photoshop, I want Aperture to behave as it does.
    That's because, with Photoshop, I use layers extensively. Any edits I do (levels, curves, saturation, sharpening) I do on layers. I can delete the layers at any time (or select to show or hide them). Because of this, I actually WANT Aperture to behave the way it does. Once I've done a bunch of edits in Photoshop, if I select again to edit that file in the external editor, I want to work on that specific file (to add another layer, or change one). I don't want another duplicate. I tinkered with this over the weekend, and it worked very nicely for me.
    Perhaps you work differently from within Photoshop? Do you ever use layers? If I were to have a bunch of Photoshop "versions," each with 5 layers, I'd have like 5 GB of "versions" for my original 8 MB RAW file, due to the size of PSD files. Yuck

  • Weird behavior using the Info Overlay

    Here is a screen shot of the strange behavior I get when hitting the "I" or info key in LR.  This is happening in LR3 & LR4.  When I first hit "I" I get a correct display of shutter speed, aperture, etc - then after a few seconds the strange display occurs and I hit the "I" to bring down the info overlay. Any help appreciated (Win7, 1 yr old Falcon NW, with 12 GB memory).

    Yea, that is what mine does, I toggle the "I" and it fixs itself.  Then it will display the metadatta correctly, but intermittently it will then flip back to that wanged out looking display.  Not worth purchasing a new video card (if in fact that is the culprit) for but it is quite frustrating.

  • I downloaded mountain lion and then the new office suite (word, ppt, excel) but now when I try to display one of my ppt's it says 'ppt cannot open the file...the file may be corrupt, in use, not a type recognized by ppt etc.." how can I fix it?? HELP

    I downloaded mountain lion and then the new office suite (word, ppt, excel) but now when I try to display one of my ppt's it says 'ppt cannot open the file...the file may be corrupt, in use, not a type recognized by ppt etc.." how can I fix it?? HELP

    Did you try to open teh fle by double-clicking its icon? If the file was made with an older version of Office, you may get that message. Try opeing PP and, from its "File" menu, see if you can open the ppt. I've foundthat often gets around that message and then yo ucan save the file from the newer version.
    If that doesn't work, consider asking in the Microsoft Office: Mac forums here:
    Office for Mac forums
    PowerPoint is not an Apple product and it seems a lot of people around here avoid Office.

  • "uses a file type that is blocked from opening in this version" error message when opening a *.doc file with Word already running

    Several customers running different versions of Office 2011 (14.4.1-14.4.5) on OSX varying from 10.7.5 to 10.9.5, running on various kinds of hardware (iMac/MacBook Pro/MacBook Air) of various ages are having issues opening *.doc files if the Word is already open. The error message that gets displayed is, "XXXX.doc uses a file type that is blocked from opening in this version"
    When the customer tries to open the same file via File-Open, she gets "The file is locked for editing. you can open the file as read-only".
    When trying to do so, she gets "Word cannot open this document. The document might be in use, the document might not be a valid Word document, or the file name might contain invalid characters".
    If Word gets Force-quit, the same document opens without any problems.
    1. Repairing Disk permissions was ran several times. and the volume was found to be OK.
    2. I have noticed that in this scenario either deleting the normal.dotm or com.microsoft.word.plist (~/Library/Preferences) sometimes resolves the issue, sometimes it doesn’t. There is no pattern to follow. All versions of Office are affected, the fully updated and the non-updated ones.
    3. I have tried completely removing the suite using Office 2011 Uninstall.app and/or Remove Office 2011 Uninstaller.pkg, then going through customer's library and manually removing all the Office references.
    4. None of these systems had Office 2008 in the past.
    Any help will be greatly appreciated.

    Reboot both the Mac and the server. Word opens .DOC files and Excel opens .XLS files. As you have found out by copying the files to the computer. It is the connection between the 2 computer that is causing the error.

  • Firefox keeps asking me what program to use to open file types even though I have selected one and checked "do this for all files of this type" going foward

    I am working in Windows and every time I open an attachment, Firefox asks what program to use to open files of this type. I always select the proper program and then check the box that says use this program for all future files of this type. In spite of that, the program continues to ask for every file. How do I turn off this feature and just have the program remember the correct program to use for each type of file extension?

    Regardless of your download preferences, web servers can trigger a download prompt by sending either the ''Content-Type: application/octet-stream'' or the ''Content-Disposition: attachment'' header. You can check if that's the case by examining the server response headers in the [https://developer.mozilla.org/docs/Tools/Web_Console Web Console].
    For the latter problem install the InlineDisposition add-on and see if it helps.
    * https://addons.mozilla.org/firefox/addon/inlinedisposition/
    If the problem persists, post back here with either an example link or a screenshot of the relevant response headers in the Web Console.
    * [[How do I create a screenshot of my problem?]]

  • Hi, I got iMac and I can not open file "doc" when I have downloaded from distance learning internet page. I have office program, but when I try to open file it shows: u1-assesment.doc uses a file type that is  blocked from opening in this version.?

    Hi, I got iMac and I can not open file "doc" when I have downloaded from distance learning internet page. I have office program, but when I try to open file it shows: u1-assesment.doc uses a file type that is  blocked from opening in this version.?
    I have tryed to change just extension from doc to docx, but it doesn't work. I am new user, please help

    Consider the Mcrosoft Office:Mac forums as well:
    Office for Mac forums
    Here is an MS page that deals with that error message:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/bs0811doc-use s-a-file-type-that-is-blocked-from/548ce159-8157-419e-9552-1789594fafe9

  • Adobe product that used to open all types of files

    My laptop have window 7, 64 bits operating system. I need any product (software) that open all types of files .
    Thank you
    nori642
    Denver,CO,80231

    This doesn't exists.

  • Weird behavior in Classic or not?

    It has been a long time since I've needed to use Classic (on 10.4.something)  Today I needed to do something that could only be done in classic.  I thought I saw some weird behavior so I tried a couple of other classic apps.    All started Classic just fine, brought up their document window and menu bar.  But there was no classic desktop under the app's window and while the menu bar showed "finder" as an open application that could be switched to (the right-most menu item) but when I switched to it I got the OS X finder, not a OS 9 one.   Occasionally I can get what looks like a Finder menu bar, but that's on it are the Apple and Help and the app switcher.
    Recently I've been playing with Sheepshaver on a Snow Leopard system, which brings up an honest-to-goodness OS 9 desktop.
    Now, I am misremembering how Classic works (in effect, no desktop and no finder) or is something wrong.  I checked all three of my systems running Tiger and they have the same behavior.   (A G4 -- that will still boot into OS 9, a powerbook G4, and a mac-mini.)
    Ted Lee
    Minnetonka, MN

    OK, I found an article on rebuilding the desktop and it indicated that while there is a file for the OS9 desktop, in the classic environment it is invisible and can only be found through an alias that is created on the OS X desktop.  I suspect I've deleted that alias since I didn't have any particular need for it.   The article tells you how to re-create the alias from the terminal.  indeed there is a folder there and it is empty.  No particular use for it -- if you select Desktop from an OS 9 app you get the OS X desktop.   I can also see why there's no real OS 9 finder -- anything you could have done from it you can do from the OS X finder -- except the "Apple Menu" and that's why that's under the classic icon on the right half of an OS X menu bar.  There still is a "rebuild desktop" in the Classic prefs -- I assume that's so you get the right doc/app association in the classic environment, since I don't think OS X understands the classic creator/type info.
    So sounds very much like I'm misremembering!
    Ted Lee
    Minnetonka, MN

  • Weird tab automatically opens

    Sometimes when I go to a site with social networking buttons (i.e. FaceBook, Twitter, Google+), a weird new tab opens up with a small button on the upper right corner. I suspect that it's an add-on problem; but because it occurs randomly, I cannot single out which add-on causes this weird behavior, nor can I provide an snapshot attachment immediately.
    Note, The extensions Download Helper, DownThemAll, Fullscreen Homestarruner, TabMixPlus, and TACO were disabled at one point when this issue occurred.
    If anyone reading this does not have this problem, please list the add-ons you use that are also on the Troubleshooting Information list so that I can rule them out.

    Still happening. Attached an image that has popped up.

  • Weird Behavior. Why does Safari do this?

    Please, can someone explain to me why Safari (1.3.2) hops tabs? I click a link in one tab and instead of going forward to that link, replacing this tab's contents, it jumps (not all the time but usually) to a different open tab and replaces what was there. Unless I hold the command key before clicking a link. WHY does it do this?
    Any help will be greatlt appreciated. I'm about to move on to Firefox because of this weird behavior.

    So I figured I would switch to flickr for photos.
    Safari won't even upload in Safari!!!!
    I Choose the photo. And that's it. Safari will not go to the next step in flickr either.
    Both photobucket and flickr work and upload photos fine using FIREFOX.
    God I'm just so tired of Apple stuff not working.

  • Constant spinning beach ball, other weird behaviors in Mail

    I have been using Mail for years without any problems. Now it gives me the spinning beach ball constantly during use. Could it be because of a recent switch from Verizon to Comcast? At first I thought it had something to do with retrieving messages, which seemed to interrupt message-writing or message-reading. So I set the pref to retrieve manually, but the beach ball continues to spin. It seems random, not related to any particular action, and occurs two or three times every time I use Mail. When the beach ball spins, Mail seems locked up. I also have noticed that sometimes there's a delay when the message headers are loading, and sometimes when I click to open a message, the box comes up empty for a few seconds, then the text flows in. All weird behaviors I have not seen before! Any advice? I tried rebuilding my inbox, but this seems to happen in various user-created mailboxes too -- not any single mailbox.

    Fixed

  • Visibility weird behavior after -Syu

    Hello
    I have been using visibility with openbox on my Arch 64 system for a long time and have been very pleased with both. I just did a full system update yesterday and have been experiencing a weird behavior on visibility ever since.
    Usually when I clicked on an application on a different desktop than mine I was transported to that desktop and the application was focused.
    Since the system update , whenever I click on an application on a different desktop, that application is moved to my current desktop. Meaning that if I actually clicked on every app running on every other desktop, they would all be moved to my current desktop. Weird and impractical if you ask me.
    I am suspecting it has something to do with an upgrade on openbox ? I checked whether some new option/setting was installed on the config file but didn't notice anything.
    Anyone else experiencing the same effect ?

    Maybe one can easily change the visibility code to do it right ?
    Problem is, i have NO knowlege about how this stuff works. Plus, i dont now c++
    But i browsed through the code and found a file called 'window.cc' with this code:
    bool Window::activate(void) {
    255 Server * server = Server::instance();
    256 XEvent event;
    257 long mask = SubstructureRedirectMask | SubstructureNotifyMask;
    258
    259 event.xclient.type = ClientMessage;
    260 event.xclient.serial = 0;
    261 event.xclient.send_event = True;
    262 event.xclient.display = server->display;
    263 event.xclient.window = drawable;
    264 event.xclient.message_type = server->net_active_window_atom;
    265
    266 event.xclient.format = 32;
    267 event.xclient.data.l[0] = 2;
    268 event.xclient.data.l[1] = 0;
    269 event.xclient.data.l[2] = 0;
    270 event.xclient.data.l[3] = 0;
    271 event.xclient.data.l[4] = 0;
    272
    273 if (XSendEvent(server->display, server->root_window, False, mask, &event)) {
    274 return true;
    275 }
    276 return false;
    277 }
    and in 'server.cc' i found this:
    28 // set up atoms
    29 net_active_window_atom = XInternAtom(display, "_NET_ACTIVE_WINDOW", False);
    So what i think is, one need to change the 'Window::activate(void) ' function to first switch desktop and then activate the window.
    Maybe this is total nonsense ... i dont know
    Haench

  • Creating multiple profiles, using unified profile types, to store multiple values for same properties

    Hi All:
    I am trying to create multiple profiles, using unified profile types, to
    store multiple values for same properties. Here my intention of using
    'unified profile types' is to create multiple profiles (to store multiple
    values for a property). All the properties are stored in the same database
    maintained by Personalization server. Also, I am trying to use the same
    'USER' ejb as profile class/home/pk/jndi.
    The scenerio is,
    define unified profile types (Business, Vacation) using Personalization
    admin tools, using com.beasys.commerce.axiom.contact.User,
    com.beasys.commerce.axiom.contact.UserHome,
    com.beasys.commerce.axiom.contact.UserPk,
    com.beasys.commerce.axiom.contact.User for Profile Class, Home, Pk class,
    JNDI name respectively.
    Define Property set 'HotelCommerce' with property
    HotelProp as single, restricted, text (valid values Single, Double)
    Now you can use the attached jsp files to login as a user and try to set the
    property value for HotelProp for each profile. As per my understanding, I
    was expecting that I can set different values for the property 'HotelProp'
    for each profiles. But unexpectedly, all the profiles get the same value.
    Question. is it the correct behavior? if yes, how can I achieve this
    functionality?
    if not, do you see any problem in my scripts?
    your answer asap is appreciated. we need to make decision on using
    Personalization server v/s developing our own Personalization server!!!:)
    thanks,
    -rajesh
    PS: I have tried 'Unified Profile Example' type too, but that did not work.
    [propsettest.jsp]
    [home.jsp]

    I am trying to create multiple profiles, using unified profile types, to
    store multiple values for same properties. Here my intention of using
    'unified profile types' is to create multiple profiles (to store multiple
    values for a property). All the properties are stored in the same database
    maintained by Personalization server. Also, I am trying to use the same
    'USER' ejb as profile class/home/pk/jndi.Hello Rajesh,
    This is not the purpose of the UUP. The UUP is used to allow existing
    database schemas to be aggregated with the existing Weblogic Personalization
    Server database schema to provide a single, customized user profile with which
    to maintain the user properties (
    http://e-docs.bea.com/wlcs/p13n/users.htm#1068901 )
    If you want to have properties that change value based on some "profile" or
    classification of a user, then you should use classifier rules to change the
    user from "OnVacation" to "AtWork" or "AtHome". You can use these classifier
    rules to select content for the user or conditionally execute logic (
    http://e-docs.bea.com/wlcs/p13n/rules.htm )
    Ture Hoefner
    BEA Systems, Inc.
    1655 Walnut Street; suite 200
    Boulder, CO 80302
    www.beasys.com

  • Generate Unique Schema Types

    Hello!
    In the "Consume Adapter Service" dialog box, on the bottom left corner of the form, there is a check box that says "Generate Unique Schema Types".  I cannot not find anything in the documentation that indicates what this does, what it is used for, or when to use it and when not to use it.  In the screen shots of the help files this check box does not appear, so I am guessing that this is a new feature and the documentation just hasn't been updated.
    Can someone please explain what this check box does and when and when not to use it?
    Thanks.

    Hi!
    Scenario why this was required:
    (a) you create a new BTS project
    (b) you generate metadata for an operation O1, containing a parameter which is of a complex type CT1.
    (c) you close the add adapter service wizard
    (d) you re-open the add adapter service wizard, and generate metadata for an operation O2, which contains a parameter, also of complex type CT1
    (e) you close the add adapter service wizard.
    Now, what you will see is that the complex type CT1 has been defined twice (in different XSD files). This can lead to compilation errors.
    Hence, this setting "Generate unique schema types".
    At step (b) above, after the metadata has been generated, but before the XSD files are created, complex type CT1 is renamed to something like CT1_GUID1. At step (d) above, complex type CT1 is renamed to something like CT1_GUID2. Since the names are not conflicting anymore, there are no compilation errors.
    Recommendation - if you want to generate schemas for multiple operations, you should generate them at the same time (so that there is just one definition for complex type CT1 (no renaming)).
    Mustansir

Maybe you are looking for

  • What is the best model laptop that 9.2.2 can start up on?

    I'm looking to buy an old laptop that starts up Classic 9.2.2 like the iMac G3 does and can also run a version of OS X (at least 10.3.9). Would those be Powerbooks or iBooks or both? What is the fastest model I should look for?

  • Is this a sign my Hard Drive is failing?

    I was using my iBook today and thought I heard something a little different coming from the HD (just barely audible). So the first thing I did was go to the Disk Utility. Here is what it said: Volume Header needs minor repair_ The volume Macintosh HD

  • Separate document no. for SD revision document and detagging relationship between invoice and SD document no.

    HI, Country specific settings for India - Business transactions enables SD revision vide table TE872_SDCTRL_IND. Whenever SD revision takes place system issue similar document no. as that of invoice and tagged it with XBLNR as per standard process. N

  • Imac display flickerring

    Im having a imac, its having a problem with the display..It used to flickker .. I got to know the solution for that, but i couldnt get how to fix it.. I just turn the imac upside down and started , works perfectly.. but when i turned it to normal pos

  • Planning to buy Apple MacBook Pro MD101HN/A 13-inch

    Dear Experts, I am from India and I would like to buy a MacBook Pro 13 Inch without Retina display (MD101HN/A). This is available in India amazon site but I couldn't find it in (MD101HN/A) in US amazon site. I am basically a developer and wanted to b