Mkfld32fromschema does nothing, what am i missing?

mkfld32fromschema -b 200 -i template.xsd -o jimbo
jimbo contains nothing.
template.xsd contains:
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' elementFormDefault="unqualified" >
<xs:element name="template" type="rootType" />
<xs:complexType name="rootType" >
<xs:sequence >
<xs:element name="templateId" type="templateIdType" />
<xs:element name="datelastused" type="datelastused" />
<xs:element name="numberuses" type="numberuses" />
<xs:element name="lastuserncid" type="lastuserncid" />
</xs:sequence>
</xs:complexType>
<xs:simpleType name="templateIdType" >
<xs:restriction base="xs:string" >
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="datelastused" >
<xs:restriction base="xs:string" >
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="numberuses" >
<xs:restriction base="xs:string" >
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="lastuserncid" >
<xs:restriction base="xs:string" >
</xs:restriction>
</xs:simpleType>
</xs:schema>
What am I missing?
Jim

All,
For others looking at this thread in the future, this question was answered at Complex xsd with many nested types as follows:
Jim,
mkfld32fromschema is designed to look for <xsd:element name="name" type="type"> elements within schema files. If you installed the SALT samples, you can look at the $TUXDIR/samples/salt/sca/uBikeSCA/uBike.xsd file, which contains
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="tuxedo" targetNamespace="tuxedo">
<xsd:complexType name="BikeInventory">
<xsd:sequence>
<xsd:element name="BIKES" type="Bike" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="STATUS" type="xsd:string" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Bike">
<xsd:sequence>
<xsd:element name="SERIALNO" type="xsd:string"/>
<xsd:element name="SKU" type="xsd:string"/>
<xsd:element name="NAME" type="xsd:string"/>
<xsd:element name="TYPE" type="xsd:string"/>
<xsd:element name="PRICE" type="xsd:float"/>
<xsd:element name="SIZE" type="xsd:int"/>
<xsd:element name="INSTOCK" type="xsd:string"/>
<xsd:element name="ORDERDATE" type="xsd:string"/>
<xsd:element name="COLOR" type="xsd:string"/>
<xsd:element name="CURSERIALNO" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
The command mkfld32fromschema -b 200 -i $TUXDIR/samples/salt/sca/uBikeSCA/uBike.xsd produces the following output:
#NAME ID TYPE FLAG COMMENT
*base 200
BIKES 1 fml32
STATUS 2 string
SERIALNO 3 string
SKU 4 string
NAME 5 string
TYPE 6 string
PRICE 7 float
SIZE 8 long
INSTOCK 9 string
ORDERDATE 10 string
COLOR 11 string
CURSERIALNO 12 string
Note that since the type="Bike" associated with name="BIKES" does not start with xsd: , this is assumed to be a nested fml32 type.
In your case, you can get some output from mkfld32from schema by changing xs: to xsd: in the schema file. The command sed 's!xs:!xsd:!g' <template.xsd | mkfld32fromschema -b 200 -o jimbo will write the following to jimbo:
#NAME ID TYPE FLAG COMMENT
*base 200
template 1 fml32
templateId 2 fml32
datelastused 3 fml32
numberuses 4 fml32
lastuserncid 5 fml32
Note that the output is being produced from the date at the top of the file, such as
<xs:element name="datelastused" type="datelastused" />
Since these types do not start with xsd: the output type is fml32.
In order to parse the data in the lower part of the file such as
*<xs:simpleType name="datelastused" >
<xs:restriction base="xs:string" >
</xs:restriction>
</xs:simpleType>*
it would be necessary to do more extensive editing on the file contents before passing it to mkfld32fromschema.
Regards,
Ed

Similar Messages

  • My IPad says that it isn't backed up and needs to be connected to wifi plugged in and lock and I try to click ok and it does nothing what can I do?

    My IPad says that it isn't backed up and needs to be connected to wifi plugged in and lock and I try to click ok and it does nothing what can I do?

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • My ipod is saying its disabled and to connect to itunes but when i do it does nothing, what do i do??

    My ipod touch is saying its disabled and to connect to itunes but when i do that it does nothing, what can i do to fix it??

    If your iPod has been disabled due to multiple incorrect passcode attempts, restore the iPod from the computer to which the iPod is synced. For information and instructions, see:
    http://support.apple.com/kb/ht1212
    If that will not work, you'll need to put the iPod into Recovery Mode and then try the Restore again:
    http://support.apple.com/kb/ht1808
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • When I try to download Illustrator, the download screen appears, but does nothing, what to do?

    When I try to download Illustrator from my account alls well unitl the download.  Then nothing happens.  No progress bar.  The screen does not freeze, it just does nothing.

    Try using a different browser.  Sometimes it helps.

  • Glxinfo returns nothing - what am I missing? [SOLVED]

    I've looked around but can't seem to find what I'm looking for. I've been working with two different systems and got fglrx to work pretty well performance wise. Here's the culprit, or annoyance might be a better word:
    - 3D obviously works because otherwise I wouldn't get 3D games to work with good performance
    - Mesa is installed
    - still "glxinfo" gives no output at all, it's just hanging there
    - same applies to KDE information center and Open GL
    Hardware:
    ATI x800 pro
    - updated to latest catalyst, running gnome
    ATI x800 gto (this has always been a tricky card which won't even work with ati open-driver)
    - fresh for this evening install, updated to latest catalyst, running KDE
    Should I care to track down the reason, or is it a non important one?
    Last edited by KimTjik (2007-12-09 11:31:59)

    if you open a second terminal, while the first glxinfo is still hung, and try glxinfo from the second terminal, does it work?  There's oddness reported that the first GL app won't do anything, and will just hang.

  • Apps prompts for Apple ID, then does nothing - what to do?

    I just set up my new 11" MacBook Air with the assistant, restoring all of my apps and user data from the TimeMachine backup of my old MacBook.
    Now, a couple of apps I purchased on my old MacBook prompts me to sign in using my Apple ID when I try to launch them (since they were purchased on another computer). But when I enter my username and password, the app just quits, and if I click it again, the app won't launch at all.
    Restarting, and signing in and out of Mac App Store doesn't help. Should I deactivate the apps on my old MacBook? How?
    What am I supposed to do to fix this?

    Removing the applications manually (dragging them to the trash), and then reinstalling them from the Mac App Store solved the problem.

  • FaceBook button missing in iPhoto 8.0.4, menu option does nothing

    I can see the MobileMe, Email and Flickr buttons in iPhoto (latest version). The FaceBook button is missing. Clicking an album and then the FaceBook menu item in Share does nothing.
    Neither does the Flickr button or menu item. MobileMe does bring up a dialog box but I have no idea where the FaceBook button disappeared to and how to bring it back and actually make it work. I have posted albums OK in the past.
    Imran

    You remove that file.
    Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.
    *What's the plist file?*
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.
    Regards
    TD

  • No Mirroring in Ipad 2? I have IPAD2 and Apple Tv 4.3. I can airplay videos/music from Ipad2 to my HDTV via ATV, but I cant mirror it. When I select airplay to switch from Ipad2 to Apple TV, Mirroring does not show as an option. What am I missing?

    No Mirroring in Ipad 2?
    I have IPAD2 and Apple Tv 4.3. I can airplay videos/music from Ipad2 to my HDTV via ATV, but I cant mirror it. When I select airplay to switch from Ipad2 to Apple TV, Mirroring does not show as an option. What am I missing?

    That feature is not yet available, it is coming with IOS 5
    http://www.apple.com/ca/ios/ios5/features.html

  • Just bought new iMac. When browsing in Safari, sometimes the text suddenly gets super large. I'm doing nothing except reading the screen, tho I have my hand on the mouse. I can get back to normal size by clicking "actual size" in View. What gives?

    Just bought brand new new iMac. When browsing in Safari, sometimes the text suddenly gets super large. I'm doing nothing except reading the screen, tho I usually have my hand resting lightly on the mouse. I can get back to normal size by clicking "actual size" in View. But then it does it again a minute or two later. What gives? Something seems defective--but what?

    From System Preferences, Mouse, Point & Click, Secondary click.  Go to it hover over Secondary click and watch the short video sequence change it left right, left right, you will see exactly what is does. No I do not think your Mouse is defective, you simply need to take control of your Mouse finger.

  • What do I do now that Photoshop CC has encountered an error while trying to upgrade. Suggesting retry does nothing. The numbers (49) appear, but I don't know what that signifies. Help?

    What do I do now that Photoshop CC has encountered an error while trying to upgrade. Suggesting retry does nothing. The numbers (49) appear, but I don’t know what that signifies. Help?
    It is recommended that I ask for help, which put me here. What I really need is some customer service — not a chat room!

    If Windows :
    Quit Creative Cloud desktop application .
    Launch Photoshop cc 2014 application from C: > Program Files > Adobe Photoshop CC 2014 .
    Once launched , click on Help menu in Photoshop cc 2014 and select Updates option .
    It should update.
    If Mac:
    Quit Creative Cloud desktop application .
    Launch Photoshop cc 2014 application from Applications folder:
    Once launched , click on Help menu in Photoshop cc 2014 and select Updates option .
    Let me know if you face any error .
    Error 49 occurs while updating the application , when Creative Cloud app  does not have reference / Access to installed CC app, so that it can apply updates for the same .
    You can try to update from CC app  like Photoshop itself and check.

  • I did an update n my ipad2 and now its frozen and connecting it to itunes does nothing it wont recognize it nor does a hard reset work. what do i do??

    I updated my ipad2 and then it went to reset and froze. A hard reset does nothing and connecting it to itunes does not work it wont recognize it. What do i do??

    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
     Cheers, Tom

  • Since uploading Maverick, my Microsoft apps give an error message "(the app) quit unexpectedly.  Click Reopen to open the application again."  However, this does nothing but renew this window.  What to do?

    Since uploading Maverick, all of my Microsoft apps give an error message "(name of the app) quit unexpectedly.  Click Reopen to open the application again."  However, this does nothing but renew this window.  I have to click on the "OK" button to get rid of the error message.  What to do?

    Very Important, how much Free Space is on your Hard Drive first of all? Click on the Macintosh HD on the Desktop, then do a Get Info on it.
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    Do they launch OK while in Safe Mode?

  • New apple user, just got new iPod touch gen 5 and there is no App Store on it. Restored it twice and this does nothing. What do I do, help please :(

    New apple user, just got new iPod touch gen 5 and there is no App Store on it. Restored it twice and this does nothing. What do I do, help please :(

    Has it been disabled via Settings -> General -> Restrictions?
    I assume you have checked other pages of apps by swiping to the left from the home screen?
    B-rock

  • Devices/Printers tile does not appear, what am I missing??

    This is a Windows Server 2012 R2 Remote Desktop Host environment.
    Devices and Printers tile created and placed underneath 'Desktop'
    Configured a custom Start menu using the XML file method and setting its location in Group Policy, I can see 'Devices and Printers' in the XML file.
    Set polcies to allow access to Control Panel and to show ONLY Devices and Printers.
    Did gpupdate /force on the DC and on the RDS host wherein I'm testing, logged in as a test user.
    The D and P tile is still not showing on Start screen nor does it show in Apps list...
    D and P can be found with Search but that is clunky...
    What am I missing to make this tile visible to users?? (I even tried re-creating the test user)
    Thank you, Tom

    Hi Tom,
    I did a test and it seems that we can't deploy the tile of Devices and Printers via group policy setting
    Start Screen Layout. The reason behind this may be due to the fact that the AppID of the Devices and Printers in the exported start layout file is not a set one. We can compare the AppIDs of the Devices and Printers after exporting
    the screen layout files with two different user accounts.
    Regarding this point, the following thread can also be referred to for more information.
    [Suggestion/Issue] GPO "Start Menu Layout" / PS Export-StartLayout Issue
    http://social.technet.microsoft.com/Forums/en-US/1aa2b56f-c044-4ab0-938a-f3e4b9e8cad4/suggestionissue-gpo-start-menu-layout-ps-exportstartlayout-issue
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
    Best regards,
    Frank Shen

  • Everytime i turn on my ipod it says to connect to itunes and when i do it does nothing.. what do i do?

    Everytime i turn on my ipod it tells me to connect to itunes and when i do connect it to itunes it does nothing and my ipod is stuck on that page .. what do i do?

    well wat happened did you forget your password so you had to go on it well i did was transfer my purchases by clicking up top and then if you click on some tabs on itunes then you can restore your ipod. make sure all  ur songs music games apps etc are either already synced on before or like i said transfer your purchases. then restore the ipod by holding the home button and the power button until it turns off then release the power button but still hold the home button then itunes will say blah has been put into recovery mode click ok then restore it make sure  you are pluged into your compputer to itunes the whole time

Maybe you are looking for