Document stored database import module

Is it possible to import a module into a document, which is stored in the database, if I could write something like this:
import module 'cool_functions' at 'dbxml:/container.dbxml/cool_functions.xquery'
or
import module namespace cool="urn:cool_namespace" at 'dbxml:/container.dbxml/cool_functions.xquery'
Currently, base directory is added to the query and only I ' XmlQueryParserError error: cannot read the contents of the request of /some/path/dbxml:/container.dbxml/core_functions.xq [err: XQST0059], line 0, column 0'
Specification does not deny this behavior, it [only said | http://www.w3.org/TR/xquery/#doc-xquery-ModuleImport] that it must be a URI after the keyword "at".

Hello

There are a number of things going on:
1 XQuery (XQueryX vs) is not XML, so you can't store XQuery expressions or modules as a document XML of BDB. You can store it as metadata document or in a separate Berkeley DB database.
2. There is no code built-in to import modules from anywhere in a container. You can create and save an instance of the XmlResolver object which is capable to do so given your own namespace

Kind regards

George

Tags: Database

Similar Questions

  • When you copy documents stored in a CD Rom, I got the error 0x8007045D

    When you copy documents stored in a CD Rom, I have the error 0x8007045D message: the request could not be performed because of an i/o device error.

    Please, I beg you. What can I do to copy the documents into the CD Rom in PDF files.
    Thank you
    Stanley

    Hi Stanley,

    You can read the following article and check if it helps.

    Error message when you try to perform a full backup on a Windows Vista-based computer: "the application cannot be performed because of an i/o device error."

    Hope this information is useful.

  • Error in database import complete

    Hi friends,

    My Version of the database

    --------------------------------------------------------

    Oracle Database 10 g Enterprise Edition release 10.2.0.3.0 - 64bi

    PL/SQL version 10.2.0.3.0 - Production

    CORE Production 10.2.0.3.0

    AMT for 64-bit Windows: Version 10.2.0.3.0 - Production

    NLSRTL Version 10.2.0.3.0 - Production

    --------------------------------------------------------

    I have a Dmp file exported from our production database.

    Now I have other expenses installing Oracle 10 g. (The two database have same versions.) in which I created a new user with the following statement using

    Create a newinv user identified by newinv.

    Then I connected as a DBA a given resource and connect, rights imp_full_database of newinv.

    When I use the import command to import the complete database as

    file newinv/newinv@test IMP = log d:\backup.dmp = d:\backup_imp.log full = y

    then his send me errors like

    Missing INVROLE, Tablespace missing photo.

    My question is what Else I should do prior to a full database import. Please help me.

    Thank you

    Shoaib

    You made an export of the USER, not a FULL export.

    Only a FULL export of the CREATE TABLESPACE, CREATE ROLE, orders CREATE USER etc. must be performed by the import.

    Your import cannot run these commands because they do not exist in the export dumpfile.

    For a migration simple schema using import and export of the USER, you must manually create the TABLESPACEs, roles, USERS and privileges before you start the import operation.

    Hemant K Collette

  • My pictures on my card do not show in the import module, but I can see the names of files. How can I make my photo visible?

    I try to import images from the camera or via a card reader. It seems that something has changed. The image is not visible in the import module, but I can see folder names (date) on the map.

    How can I make my photo visible?

    Thanks for the help!

    Dear Akash,

    I have lightroom 5 and sony A77 M2. Finally I solve it myself investigate other positions on the internet on the same subject. I clicked on the part of area of "copy of area" (right of the screen) to the modus of import and the images showed once again. Still don't know why the pictures disappear and hope it was just something that I was wrong somewhere. Before I had multiple tasks (moving files) in the background may cause pressure on system/software.

    Thanks anyway for the reaction

  • PowerCLI 6.0R2 bug with Import-Module-prefix?

    Yesterday I installed a couple of nine Win2012R2 servers and of course installed PowerCLI 6.0R2.

    In order to avoid multiple commands with the same name, we use the--Prefix setting for the modules. It worked great in R1 but I am facing problems with R2.

    Load the modules with code below:

    $VMwareModules = 'VMware.VimAutomation.Core', 'VMware.VimAutomation.Vds'

    foreach ($Module in $VMwareModules) { }

    if (! (Get-Module | ? {$_. (({Name -eq $Module})) {}

    Try {

    Import-Module -Nom $Module -Prefix "VMW"

    }

    Catch {

    $ErrorMessage = $_ . Exception. Message

    breaking

    }

    }

    }


    When running Get-Module now the modules but show the Basic module shows all ExportedCommands (which he did in R1).

    Basic modules shows too, now that 'script' instead of 'manifesto', as in R1.

    Not sure if this has anything to do with this.


    If we compare the number of orders 'Raphael' in R1 and R2, missing 300 orders for the Basic module in R2.


    Is this a bug? Is there a solution?


    R2:

    PS C:\ > get-module

    Version of Moduleinfo name ExportedCommands

    ---------- -------    ----                                ----------------

    Script Initialize-VMware_VimAutomation_Vds 0.0

    Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Computer, Add-Content, Checkpoint-Computer, Clear-Con...}

    Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, add-Type, Clear-Variable, Compare-Object...}

    VMware.VimAutomation.Core script 6.0.0.0

    Clear VMware.VimAutomation.Sdk 6.0.0.0

    6.0.0.0 binary VMware.VimAutomation.Vds {add-VDSwitchPhysicalNetworkAdapter, add-VDSwitchVMHost, E...

    PS C:\ > get-vitoolkitversion

    PowerCLI Version

    ----------------

    VMware vSphere PowerCLI 6.0 Release 2 build 3056836

    ---------------

    Component versions

    ---------------

    VMWare AutoDeploy PowerCLI component 6.0 build 2358282

    VMWare ImageBuilder PowerCLI component 6.0 build 2358282

    VMware vSphere PowerCLI component 6.0 build 3052101

    VDS's VMware PowerCLI component 6.0 build 3052101


    PS C:\ > (get-command * vmw *) .count

    33


    R1:

    PS C:\ > get-module

    Version of Moduleinfo name ExportedCommands

    ---------- -------    ----                                ----------------

    Script Initialize-VMware_VimAutomation_Vds 0.0

    Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Computer, Add-Content, Checkpoint-Computer, Clear-Con...}

    Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, add-Type, Clear-Variable, Compare-Object...}

    VMware.VimAutomation.Core manifesto 6.0.0.0 {Add-PassthroughDevice, add VirtualSwitchPhysicalNetworkAd... }

    Clear VMware.VimAutomation.Sdk 6.0.0.0

    6.0.0.0 binary VMware.VimAutomation.Vds {add-VDSwitchPhysicalNetworkAdapter, add-VDSwitchVMHost, E...

    PS C:\ > get-vitoolkitversion

    PowerCLI Version

    ----------------

    VMware vSphere PowerCLI 6.0 Release 1 build 2548067

    ---------------

    Component versions

    ---------------

    VMWare AutoDeploy PowerCLI component 6.0 build 2358282

    VMWare ImageBuilder PowerCLI component 6.0 build 2358282

    License of VMware PowerCLI component 6.0 build 2315846

    VMware vSphere PowerCLI component 6.0 build 2548068

    VDS's VMware PowerCLI component 6.0 build 2548068

    PS C:\ > (get-command * vmw *) .count

    12 p

    Hello

    First of all, I must say that you are right. This is a regression introduced in 6.0 R2 caused by updates in the manifesto of the module which target to attack another bug. Let me give you more explanation in detail on the specifics of the module VMware.VimAutomation.Core.

    Binary VMware.VimAutomation.Core is always snap-in in 6.0 R1, 6.0R2 and 6.0 R3. Which is related to internal constraints that will be overcome in the next version and the binary file is converted to module as it should.

    As binary VMware.VimAutomation.Core is pluggable PowerCLI makes it look like a module declaring a manifest module which load the snap and load so its commands to load this module 'false '. The VMWare.VimAutomation.Core module so manifest module powershell that refer to a script that loads the binary VMWare.VimAutomation.Core snap. Script files, the manifesto and that loads the snap are in the module folder: '\Modules\VMware.VimAutomation.Core '.

    Now the problem you face is that, in 6.0R1, the script that loads the snap was referenced in NestedModules module manifest, which means that all orders imported as nested module are imported into the scope of the module session. This makes the component controls snap to consider as a command module and that's why your use case has worked with 6.0R1. The problem with this is that if someone calling Remove-Module command for this module it deletes the orders of the current session, and if Import-Module is called again in the same session, that it will fail with an error "The VMware.VimAutomation.Core is already added," so no commands are loaded once the module is removed from the current session. Because of this bug, we decided not to reference the script component snap load in NestedModules but in ModulesToProcess of the module manifest. When it is referenced in the ModulesToProcess that makes the script commands to be loaded in the scope of global session which means that these commands are removed from the session when Remove-Module is called and if Import-Module is called once again he will not fail because the module manifest try again to load the sanp-in. When the controls are respectively in the context that they are not affected by the specification of modules and that is why they cannot be imported with the desired prefix you want.

    To be honest we didn't know this side effect when we discussed the initial bug with Remove-Module. All these problems will be solved in the next PowerCLI release when binary VMware.VimAutomation.Core will become the module. Until then, I suggest you workaround with fixation of the VMWare.VimAutomation.Core manifest file. To do this you have need open and change of \Modules\VMware.VimAutomation.Core\VMware.VimAutomation.Core.psd1

    the following way:

    1. set ModuleToProcess on a string is empty

    2. put NestedModules to @('VMware.VimAutomation.Core.ps1')

    This will make the module to behave in the same way as 6.0R1

    Kind regards

    Dimitar Milov

  • Where is the option "Convert to DNG" in Lightroom 2015.3 Import Module?

    Maybe I'm not, but where the option "Convert to DNG" in Lightroom 2015.3 Import Module?

    Upstairs in the Center above the image preview screen.

  • I DELETED MY PDF FILES AND AGAIN USING THE RECOVERY SOFTWARE I FIND ALL MY FILES BUT NOW WHEN I OPEN FILES THAT IT SHOWS (THE FILE MAY BE CORRUPTED OR NOT SUPPORTED FORMAT.NO HOW CAN I OPEN THE FILES.) ALL OF THEM ARE MY DOCUMENTS IS VERY IMPORTANT. PLEAS

    I DELETED MY PDF FILES AND AGAIN USING THE RECOVERY SOFTWARE I FIND ALL MY FILES BUT NOW WHEN I OPEN FILES THAT IT SHOWS (THE FILE MAY BE CORRUPTED OR NOT SUPPORTED FORMAT.NO HOW CAN I OPEN THE FILES.) ALL OF THEM ARE MY DOCUMENTS IS VERY IMPORTANT. PLEASE PROVIDE ME WITH A

    Deleted file recovery can recover incomplete files, i.e. the part of these files may be missing.  Recover deleted files is much more reliable if recovery of a backup, instead of using recovery software.

    These things depend on the operating system and the file system.

    One thing, you can see: open one of these files damaged with a text editor, and then make sure that the constant % PDF is somewhere in the first 1024 bytes.

    PS please do not post ALL uppercase; It is very difficult to read!

  • Creating a 'database' training modules?

    • Captivate 9
    • Do not use an LMS
    • Server is LAMP

    Hello

    For these past years, I worked on a project that provides on-screen training of hospital staff. Initially it was just for doctors, but the project has grown and now covers over many staff such as nurses, counsellors, staff administrative groups... etc.

    At the beginning of the project, I used a system of menu "hardcoded" which was simple and handy for just to doctors, but the project extends to other types of staff the menu system becomes difficult to manage that the updates and improvements must be made for each menu personal group. (See Figure 1)

    Slide1.JPG

    What I think of the creation is a "Lookup Table / database ' which will create menus of training based on the role of the staff." This way I can just update the Lookup Table and the training menus will be updated. (See diagram 2)

    Slide2.JPG

    My question is, someone has already tried this kind of thing and how good a job?

    Thank you

    Peter.

    I had to create a safety course where there were three different roles that would have access to the content (Manager, supervisor, employee).  Similar to your concept, the first established their role type module and it stored as a user variable that has been repeated by each successive module and this modified variable the slides that the learner was shown.

    Captivate does most of this out of the box, but the persistence of the variable from one module to the other must be done through a special widget.  Nowadays similar things can be done with JavaScript.

    I have use a database as you suggest.  Captivate isn't currently features to allow you to easily data bases query.  But if you use the LAMP then you should also have PHP on your web server and you might encode single PHP pages that could do it all.

    However, for my money, if your needs are already get this complex, I would seek to install a LMS (e.g. Moodle) system that would make it possible to assign users to roles when they are implemented in the system.  You can easily make the system show them ONLY the courses that would apply to their needs.  An LMS is almost ALWAYS going to be better in the long term than to try to do everything yourself.

  • Import-Module via a scheduled task results in different $env: modulepath

    Just upgraded to PowerCLI 6.0 R3

    Anyone encountered this?  I was updating my scripts of scheduled to begin importing the module rather that to add the snap-ins, but for some reason when Task Scheduler is running scripts, it basically-error w / unable to find valid module.

    When the position of Scheduler task as service account runs it, $env: modulepath looks like this:

    C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;D:\Program files (x 86) \Microsoft SQL Server\110\Tools\PowerShell\Modules\; C:\Dell_PSCmdlets; C:\Program Files (x 86) \AWS Tools\PowerShell\; C:\Program Files (x 86) \Microsoft SDKs\Azure\PowerShell\ServiceManagement


    When I run interactively as service account, I noticed that the module is properly in the modulepath environment variable.

    C:\Users\svcLDAPVMware\Documents\WindowsPowerShell\Modules; C:\Program Files\WindowsPowerShell\Modules; C:\Windows\System32\WindowsPowerShell\v1.0\Modules\;D:\Program files (x 86) \Microsoft SQL Server\110\Tools\PowerShell\Modules\; C:\Dell_PScmdlets. C:\Program Files (x 86) \AWS Tools\PowerShell\; C:\Program Files (x 86) \Microsoft SDKs\Azure\PowerShell\ServiceManamanagement; D:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\Modules

    I thought about it.  The Task Scheduler service is not actually update the path of the module variable until it is restarted.  If anything like that launched by there only everything that is entered in the modulepath @ start time system.  Installation PowerCLI 6.0R2 aftermath, fills all new sessions, just not all that has been actively running in time.

    I had to reboot the virtual machine to the Task Scheduler picking up the new addition to the modulepath of the system.

    It was specifically related to Windows 2008 R2, do not know if the versions are affected.  In any case, hope this is helpful to anyone who may run into the same situation.

  • problem in the import module

    I recently had Flex Builder 2.0.1 and test the functionality of the module of it. However, I am intrigued by the import in the module.

    When I create an application and a loading module. All of them need to import user interface controls such as mx.control.RichTextEditor. I had to import the class in each of them so that they are able to compile. But in this condition, the size of them both large enough to import user interface both controls. It seems difficult to understand why adobe do this. Does anyone have a good solution? Thank you!

    Thank you very much, Tim!

    I got the answer in the Adobe document (^_^)

    Controls the size of the module:

    The module size varies according to the components and classes that are used in the module. By default, a module includes all the code framework that rely on its components, causing modules to be great by categories that overlap with the application classes.

    To reduce the size of the modules, you can specify the module to outsource classes that are defined by the application. This includes custom classes and classes framework. The result is that the module includes only the classes that it requires, while the infrastructure code and other dependencies are included in the application.

    Outsource the framework classes, you generate a report of the linker of the application that loads the modules, using mxmlc command. Then use this report as input into the external load-trainees module compiler option.

    To create a report of the linker:
    The report of the linker: mxmlc-link-report = report.xml MyApplication.mxml

    Compile the application SWF file:mxmlc MyApplication.mxml

    Compile the module: mxmlc-load-over-reliance = MyModule.mxml report.xml

  • Automatic copy of the documents stored in iCloud Mac HD?

    Is it possible to save automatically documents etc. that I record on iCloud? Although I love synchronization between devices, I don't have a faith in Apple to have my only copy of an important document living remotely and independent of my will on the iCloud.  I'd be happier with a local copy as I guarantee you access to.  Y at - it a soft which should save a copy on hard drive on my Mac when I save on iCloud?

    If you use iCloud Drive on your Mac, you already have a copy of each document. They are simply hidden from your part.

  • How maually import modules?

    Im trying to import some add-ons firefox manually: I have an offline computer that I use for development, I can't add additional modules from the site of firfox to this computer because it is offline, so I use environment FEBE backup for export Add-ons of this machine online and take over the computer offline on a disc. I tried to drop the xpi files in the plugins folder and restart firefox, but no luck.

    Anyone have any suggestions? Is it possible to tell firefox to search locally for Add-ons? Rather than looking at the site of firefox?

    Have searched a bit but found nothing.

    When you are on the site AddonsMozilla.Org , click the + Add to Firefox button and use Save Link as... to save the file on your PC or device Flash XPI.

    3 ways to install an extension that you saved:
    1 file > open file
    2 drag the XPI file into the browser window.
    3. place the XPI file in the \extensions\ folder, in the folder of your profile.
    http://support.Mozilla.com/en-us/KB/profiles#How_to_find_your_profile

  • Scanned document cannot be imported

    My flat hp 3970 scanner generally works well in Windows 10, but all of a sudden he'll analyze only but not to import the document scannned to allow me to print it.

    Please help me, because I'm lost.

    In the meantime, thanks in advance.

    JoeBuzu

    Hello Joe,

    This device is quite an old device, however if your 10 read windows, its great!

    You can maybe try the HP scan & capture software, or capture him windows embeded 10 image.

    Try windows Fax and scan or microsoft paint, sp that you save the files and then print.

    I hope that gives you another idea.

  • It can't open word document because an importer of appropriate chart is not found. I had this problem and the technician "selected" Word as an opener, but I don't know where to find them on my computer. __

    Cannot open word document because a

    "appropriate graphics importer is not found."

    I had this problem and the technician "selected" Word as an opener, but I don't know where to find them on my computer. Can you direct me while I have when I want the word docuents to open they will be?

    Right click on the saved file.
    Select: Open with on the shortcut menu.
    Click: Choose [default] program
    Letter: Microsoft Word
    Check: Always use the selected program to open this type of file.
    Click OK.

    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • Error: Import module XLRD in a custom script FDMEE

    Hello Experts,

    I'm trying to import a python "xlrd" module in a custom Script FDMEE. But he doesn't always lift error "No Module name xlrd".

    I tried to import the module by changing the path sys:

    Here is the code I tried:

    ===========================================================================================

    import sys

    "custModlePath = r'fdmContext ["INBOXDIR"] +"\\Excel_Sample\\xlrd""

    sys. Path.Append (custModlePath)

    import xlrd

    path = fdmContext ["INBOXDIR"] + "\\Excel_Sample\\."

    pathout = fdmContext ["INBOXDIR"] + "\\Excel_Sample\\Out."

    Book = xlrd.open_workbook (path)

    data_sheet = book.sheet_by_name ("Report")

    #data_sheet = book.sheet_by_index (3)

    start_row_count = 7

    end_row_count = data_sheet.nrows

    MyFile = open (fdmContext ["INBOXDIR"] + "\\Excel_Sample\\Out\\mapping.csv",'w")

    #myfile = open('SG\OUT\mapping.txt','w')

    all in start_row_count < end_row_count:

    #print data_sheet.row_values (i)

    lines = data_sheet.row_values (start_row_count)

    for the line data_sheet.row_values (start_row_count):

    MyFile.Write (STR (Line))

    MyFile.Write(",")

    MyFile.Write ("\n")

    start_row_count = start_row_count + 1

    MyFile.Close)

    =============================================================================================

    ERROR:

    2016-01-27 01:18:11, 294 FATAL [AIF]: error in CommProcess.executeCustomScript

    Traceback (most recent call changed):

    File "< string >", line 191, in executeCustomScript

    File '< string >", line 486, in executeCustomScript

    Folder "< string >", line 528, in executeJythonScript

    File "E:\FDMEE/data/scripts/custom/EXCEL_TO_CSV.py", line 6, < module >

    import xlrd

    ImportError: No module named xlrd

    2016-01-27 01:18:11, 336 DEBUG [AIF]: the connection of fdmAPI was closed.

    ===========================================================================================

    Appreciate your help!

    Thank you

    Ishti

    Hello

    I was able to get it working after some changes.

    Version compatible with Jython 2.5.1 FDMEE xlrd is xlrd 0.7.4

    Xlrd record is required to be placed inside the FDMEE server and the path is required to be updated in the script.

    Below the script just in case someone needs it:

    ===============================================================================================

    import sys

    custModlePath = fdmContext ["INBOXDIR"] + "\\Excel_Sample" # path in which is placed the folder xlrd

    sys. Path.Append (custModlePath)

    import xlrd

    path = fdmContext ["INBOXDIR"] + "\\Excel_Sample\\Mapping.xls" # path to the Source file

    pathout = fdmContext ["INBOXDIR"] + "\\Excel_Sample\\Out\\" # path to the .csv file

    Book = xlrd.open_workbook (path)

    data_sheet = book.sheet_by_name ("Report")

    start_row_count = 7

    end_row_count = data_sheet.nrows

    MyFile = open (pathout + "mapping.csv", "w" ")

    everything start_row_count<>

    lines = data_sheet.row_values (start_row_count)

    for the line data_sheet.row_values (start_row_count):

    MyFile.Write (STR (Line))

    MyFile.Write(",")

    MyFile.Write ("\n")

    start_row_count = start_row_count + 1

    MyFile.Close)

    =====================================================================================================

    Thank you

    Ishtique

Maybe you are looking for