Specifying Relative pathname with include schemaLocation

Hi,
I would like to know how to specify relative path name when including other
schema definitions. For eg.
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:include schemaLocation="test.xsd"/>
gives me an error saying test.xsd not found . If I specify full path like below,
then it works fine. Any work around for this?.
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:include schemaLocation
="file:///d:/xml/xsdTest/tmx_schema_lib.xsd"/>
thanks,
Pat

Hi,
Isn't there a way to specify the relative location?
Thanks,
Pat.
Deepak Vohra <[email protected]> wrote:
>
>
The schemaLocation attribute in <xs:include> specifies the schema document
location
URI.
Patrick wrote:
Hi,
I would like to know how to specify relative path name when includingother
schema definitions. For eg.
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:include schemaLocation="test.xsd"/>
gives me an error saying test.xsd not found . If I specify full pathlike below,
then it works fine. Any work around for this?.
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:include schemaLocation
="file:///d:/xml/xsdTest/tmx_schema_lib.xsd"/>
thanks,
Pat<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
The schemaLocation attribute in <xs:include> specifies the schema
document
location URI.
<p>Patrick wrote:
<blockquote TYPE=CITE>Hi,
<p>     I would like to know how to specify relative
path name when including other
<br>schema definitions. For eg.
<p>     <?xml version="1.0" encoding="UTF-8"?>
<br>     <xsd:schema xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>">
<br>     <xsd:include schemaLocation="test.xsd"/>
<p>gives me an error saying  test.xsd not found . If I specify full
path like below,
<br>then it works fine. Any work around for this?.
<p>     <?xml version="1.0" encoding="UTF-8"?>
<br>     <xsd:schema xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>">
<br>     <xsd:include schemaLocation
<br>="<a href="file:///d:/xml/xsdTest/tmx_schema_lib.xsd" /">file:///d:/xml/xsdTest/tmx_schema_lib.xsd"/</a>>
<p>thanks,
<br>Pat</blockquote>
</html>

Similar Messages

  • Problems importing m3u playlists with relative pathnames into iTunes

    I keep my collection of mp3 music in a directory structure under the "My Music" ("%HOMEPATH%\My Documents\My Music" to be precise) directory. For each album I have a corresponding .m3u file that defines the track order and locations using relative path names (to the "My Music" directory). These work fine in all of the mp3 players I have used to date.
    The problem occurs when I try to import an .m3u file into iTunes (Copy files into iTunes music folder option is off - I don't want two copies of each mp3 taking up space). The import appears to work fine initially. Although relative pathnames are listed when you bring up the info dialog in iTunes, everything works fine (the files are synched to the iPod, and can be played in iTunes). The problem occurs when you close down iTunes. The next time you open it up, it can't find any of the mp3 files. Inspection of the "iTunes Music Library.xml" file indicates that the individual mp3 filenames are stored correctly (albeit relative to the "My Music" directory).
    I suspect what is happening is after the initial import, iTunes sets the base path for the mp3 files. When it is shut down and restarted, I suspect it is defaulting back to the "iTunes\iTunes Music" directory as the base path, and therefore is unable to locate the files anymore. Anyone else run into this, or able to offer a solution?
    Windows XP Pro

    Macintosh Novice wrote:
    I am having trouble importing MP3 files into Garage Band '08 that I recorded using a ZOOM H1 Handy Recorder.
    http://www.bulletsandbones.com/GB/GBFAQ.html#PortableRecorderMp3s ?
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • Get "Windows BDF contains relative pathname" when backup windows server dir

    Hi...
    We are testing OSB with several server with windows anf linux, and when when run a scheduled dataset with several servers, all linux servers work correct and all windows server get an error (Windows BDF contains relative pathname). I check the datasets with the "check dataset" button and all is ok.
    Any idea?, thanks a lot. Next i put some information:
    Oracle Secure Backup Release 10.3.0.2.0
    Scheduled dataset: (Simplified)
    include dataset ALMACEN
    include dataset ARTEMISA
    ALMACEN dataset: (Runs ok)
    include host ALMACEN
    cross local mountpoints
    exclude name .Trash
    include path / {              # include the local root directory
    exclude name core # but no core files (for UNIX)
    exclude name *~ # and no emacs backup files
    exclude path /tmp
    exclude path /historico
    ARTEMISA dataset: (fails on backup)
    include host ARTEMISA
    include path "C:\"
    exclude name pagefile.sys
    exclude path "C:\temp"
    exclude path "C:\tmp"
    exclude path "C:\windows\temp"
    exclude path "C:\CreativaNad"
    The jobs sumary:
    136 dataset IGNIFUGO 09/19.11:00 completed partially at 2010/09/20.00:36 - 75 not applicable 1 not applicable
    select 136.1 136.1 backup ALMACEN 09/19.11:00 completed partially at 2010/09/19.14:53 - some of the requested pathnames encountered errors 75 ALMACEN 1 678.0 GB
    select 136.10 136.10 backup ARTEMISA 09/19.11:00 failed at 2010/09/20.00:36 - Windows BDF contains relative pathname(s) 75 ARTEMISA 1 not applicable
    The transcrip from ARTEMISA
    2010/09/26.20:11:31 ______________________________________________________________________
    2010/09/26.20:11:31
    2010/09/26.20:11:31 Transcript for job 182.10 running on VCENTER
    2010/09/26.20:11:31
    Error: ** BDF error in "C:/Archivos de programa/Oracle/Backup/temp/182.10.obbdf" -- line 9: NT bdfs cannot contain relative pathnames
    Error: 1 BDF error found - aborting session
    Backup statistics:
    status 35
    devices Grabadora1
    devices 1
    volumes
    voltags
    file 7
    host ARTEMISA
    encryption on aes192
    start_time Sun Sep 26 2010 at 20:11:42 (1285524702)
    end_time Sun Sep 26 2010 at 20:11:44 (1285524704)
    backup_time Sun Sep 26 2010 at 20:11:42 (1285524702)
    entries_scanned 0
    kbytes_scanned 0
    entries_excluded 0
    entries_skipped 0
    mount_points_skipped 0
    files 0
    directories 0
    hardlinks 0
    symlinks 0
    sparse_files 0
    filesys_errors 0
    unknown_type 0
    file_kbytes 0
    dev_kbytes 0
    dev_iosecs 2
    dev_iorate 512.0 B/S
    path C:/ not started

    Hi,
    The OS partition is a Dell preinstalled volume. Since Dell indicates the FAT32 partition contains the UEFI build and should not be reformatted/converted, you could simply skip from backup as it is not related to operation system.
    For more detailed information, please refer to the thread below:
    Windows Server Backup Error: "Volume(s) OS have and unsupported files system and cannot be backed up."
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/20bbebf6-b0f8-4ae7-af0d-48b037876ef8/windows-server-backup-error-volumes-os-have-and-unsupported-files-system-and-cannot-be-backed?forum=windowsbackup
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.
    Hi, Mandy
    Thanks a lot for replying. The problem is that the OS partition is marked as System. When creating a System State backup, the System partition is presumably included because it has to be present in order for the server to boot. You are not given the
    option to skip the partition when trying to do a System State backup.

  • Include schemaLocation problem again

    I have read the previous posts on this and it seems that
    there may either be a bug or that there hasn't been an adequet example of not only what to do but what to check to see if all is OK.
    So here is the familiar problem:
    1. I need to include a common Schema into all mm Schema that I am registering.
    2. I create the resource object for the common.xsd using a reference to a file.
    3. I register common.xsd
    registerSchema('common.xsd' etc. etc.
    I understand that this Schema now can be referenced
    as common.xsd in the database.
    4. I check resource_view and see the following:
    /myHome/xsd/common.xsd
    5. I then try to register another schema which refers to
    to common.xsd thus:
    <xs:include schemaLocation="common.xsd"/>
    I get an error as follows :
    ERROR at line 1:
    ORA-31000: Resource 'common.xsd' is not an XDB schema document
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 26
    ORA-06512: at line 2
    Does this mean that there is a bug that I need to raise an iTar for or that I am being "dense" again :-)
    Martin

    No problem Mark.
    I am busy too - getting this to a live deployment by next week.
    Anyway, there is a loooong TAR ref.# 3292125.999 if you find that you can't get to sleep one night :-)
    Suffice to say that I have to move into production with the setup that I have for now:
    Windows 2000 Server on COMPAQ
    Oracle Standard Ed. 9.2.0.4.0
    1) XML Schemas are registered by a Master XML User (MXU) in Oracle.
    2) The MXU is used purely as a repository of XML Schema and XML data.
    3) The MXU grants SELECT to PUBLIC on Relational Views that it uses to expose the XML content it has.
    4) Another Oracle User (we call this the XML Access User - XAU) can then be used in a DB link from another Server to access the XML content - this gets over the restriction of accessing Object Table Types via a remote link.
    When I get a chance, I will have to open a TAR on the following "mysery":
    If the MXU tries to GRANT SELECT on the Views directly to the XAU then the Oracle Process in Win2K goes into a "loop" (max CPU usage etc. etc.).
    Happy days !
    Martin

  • List Tile View not working with include rule on iOS?

    hi Expert,
    I used the List Tile View with include rule in Agentry 6.0 on WinCE before to generate "selected" object list upon different conditions, e.g., assigning tasks based on scenarios.
    Currently, I am experimenting the same function on iOS tablet.
    On the start screen which is a detailed screen for main object, there is a List Tile View and an include rule. However, the objects in the tile list are not updated correctly when the output of the rule changes. Note that the same include rule works perfectly with a List View for the same collection.
    To my observation, the problem seems to associated with "update" of the tiles when result of include rule changes. For example, in scenario 1, there are 5 objects in the list; switching to scenario 2, there are 10 objects. From the No.6 to No.10, the objects are correct. The No.1 to No.5 are still the original 5 objects for scenario 1.
    When the user clicks on tiles, it makes the situation worse. Normally, a single object's tile will always be shown in the selected tile regardless which tile is selected from the list.
    My development environment is 6.0.40 and the client is 6.0.40 on iPad (iOS 7.1). I would like to know whether this is a known issue before I provide more details.
    Thanks.
    -Yang

    hi experts,
    When I asked the question on this list tile view refreshing issue, my dev environment is Agentry 6.0.38.
    In Agentry 6.0.40.1's release note, there is a fixed
    AG-25821  iOS 7 refresh issue with iPad tile list
    However, I currently have Agentry 6.0.42.1 on iPad (iOS 7.1.2). And my editor/server is 6.0.42.0. I still have the list tile view refreshing issue. The same rule can be used on list without any problem. But the list tile still has trouble on display the right set of objects.
    My question is is that fix related to the problem I saw?
    Thx.
    -Yang

  • When i finally connected my mac to work network on windows environment everything related to apple including App store, Safari, software updates, iCloud and iTunes do not work using a proxy server and everything else is working very well

    when i finally connected my mac to work network on windows environment everything related to apple including App store, Safari, software updates, iCloud and iTunes do not work using a proxy server and everything else is working very well including chrome browser…i tried everything but no clue...anybody have solution for this..???

    I also forgot to note that this problem also persists with the new iBooks application. I cannot get past the 'Get Started' screen or access the iBooks Store. Again, all top bar menus are unresponsive.
    DT

  • ORA-2935 - relative pathnames are not allowed - help needed

    I'm trying to generate XML document from a query using XSU and applying stylesheet with DBMS_XMLQUERY.setXSLT() procedure.
    I've got the following PL/SQL code:
    DECLARE
    q DBMS_XMLQUERY.ctxtype;
    result clob;
    BEGIN
    q := DBMS_XMLQUERY.newcontext('select * from test_xml1');
    DBMS_XMLQUERY.setxslt(q,'c:\test_xsl.xsl');
    result := DBMS_XMLQUERY.getxml(q);
    printclobout(result);
    DBMS_XMLQUERY.closecontext(q);
    END;
    and stylesheet (I made the simplest example possible):
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version = "1.0">
    <xsl:output indent="yes"/>
    <xsl:template match="ROW/COLUMNA1">
    <COL1><xsl:value-of select="COLUMNA1"/></COL1>
    </xsl:template>
    </xsl:stylesheet>
    and I'm getting error
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.SecurityException: relative
    pathnames are not allowed(c:\test_xsl1.xsl)
    What am I doing wrong?
    How the DBMS_XMLQUERY.setXSLT() procedure should be used?
    Where is the DBMS_XMLquery package expecting to find the XSL file? Does the XSL stylesheet have to be stored in a database table, retrieve it and have it applied, or does it need to be an external file?
    Please help!
    Thanks!

    Hi,
    If you don't want these two columns ignore them in SELECT statement.
    If this is what you are looking for try this
    SELECT air_cntl_number, air_id, awos_cntl_number, NAME, elipsoid_elevation,
           state_code, country_code, airport_code, LOCATION, field_elevation,
           datum, magnetic_variance, magnetic_variance_year, weather_station,
           control_tower, control_zone, control_zone_operational,
           designated_enrout_airport_afis, sectional_chart, telephone_nbr,
           flight_inspection, procedure_development, region_code,
           audit_crt_datetime, audit_crt_user_id, audit_updt_datetime,
           audit_updt_user_id, lat_degree, lat_minute, lat_second, long_degree,
           long_minute, long_second, lat_dir, long_dir, pseudo, magvar_dir,
           icao_code, CATEGORY, vertical_datum, airport_use, nfdc_ident,
           icao_location_code,
            --NULL as AIRPORT_SPATIAL_LOCATION,
           official_use_flag, part_139_flag, survey_code,
           airport_ellip_elev_source, status_code, air_revision_number,
           air_revision_date, approach_landing_number,
           --NULL as  ACTIVATION_DATE,
           tpp_vol,
           ROW_NUMBER () OVER ( PARTITION BY  air_cntl_number
                               ,                  air_revision_number
                         ORDER BY       status_code        -- assuming 'A' and 'H' are the only possible values
                          )  AS r_num
      FROM
    mv_airport_all t
      where t.audit_updt_datetime = (Select max(AUDIT_UPDT_DATETIME) from MV_AIRPORT_ALL
      where AIR_CNTL_NUMBER=t.AIR_CNTL_NUMBER and AIR_REVISION_NUMBER= t.AIR_REVISION_NUMBER)Thanks

  • I am a Canadian staying in England for a few weeks.  How can I get an iPhoto Book printed win England and sent as a gift to an English relative? With my account, it seems that Apple only allows for my book to be printed in Canada.

    I am a Canadian staying in England for a few weeks.  How can I get an iPhoto Book printed win England and sent as a gift to an English relative? With my account, it seems that Apple only allows for my book to be printed in Canada and then sent to my Canadian address..

    in the iPhoto preferences  change the print products country to the UK and give it a try - there may be some restirctions on billing but it has worked for some people
    LN

  • Use XSD referencing other XSDs with include statement in Message mapping

    Hello,
    I have an XSD with include statements having reference to other 4 XSDs.One XSD out of these 4,one references one more XSD
    I referred to the thread on this :
    refrencing 1 xsd to another   https://forums.sdn.sap.com/post!default.jspa?forumID=44#
    I have created 6 External Definitions one for each XSD
    Referring to the following statement in this thread:
    In XI 3.0, there is a tab there called External References. You will see there a Source and a Name. When you click the Name, click Copy Object. Then you open the target object and paste it under the Source located just before the tabs.
    The Name you see in the External References are the ones that are declared as include or import in the XSD.
    I can see included XSD names in Source column under External References tab in External definition for main XSD.
    But Name column is always blank and these columns are not editable.Also,copy doesn't work.
    We have XSD names in include statements,but I wonder when I create External definitions out of these XSDs ,how would my main External definition know,which other External definitions are referenced?
    If I use the External definition with main XSD as target structure in my mapping,I can only see the fields from this XSD and not the fields from the included XSDs.But I need to map these fields as well.
    Can anybody please let me know how can I get a complete XSD as target structure in my mapping?
    Thanks for your help.
    Regards,
    Shweta

    Plz close other duplicate threads for the same issue first..
    Regards,
    Sarvesh

  • Specifying a circle with 2 mouse presses

    Hi,
    I'm trying to create an applet that allows the user to specify a circle with 2 mouse presses. I'd like the 1st point to represent the circle's centre and the 2nd to be any point on the periphery.
    Creating a mouse press event handler is a given obviously within the applet. I think I'm going to need to create a variable to store the count of the mouse presses (i.e. so that I know when there've been two and the circle can be created).
    Can anyone tell me what the basic logic would be to actually create the circle based on the 2 mouse presses?
    Thanks.

    Can anyone tell me what the basic logic would be to
    actually create the circle based on the 2 mouse
    presses?
    implements MouseListener{
      int centerX = 0;
      int centerY = 0;
      int radius = 0;
    public void paint(Graphics g){
      g.drawOval(centerX-radius, centerY-radius,
                 centerX+radius, centerY+radius);
    public void mousePressed(MouseEvent me){
      centerX = me.getX();
      centerY = me.getY();
    public void mouseReleased(MouseEvent me){
      //a line from the center
      //length of x
      int x = me.getX()-centerX;
      //length of y
      int y = me.getY()-centerY;
      //a2 + b2 = c2
      radius = sqrt(pow(x, 2)+pow(y, 2));
    }i think this will work.. I used mousePressed and mouseReleased instead of two clicks.. but you can alter this if you like of course.. im not that very sure of the radius calculation, but i hope you get my point :)

  • How do I download a received e-mail into a program "directory file" and open it later by a related program with a different name.

    Each week day afternoon I receive an e-mail bulletin and previously, using AOL, I downloaded it into a directory file located as a part of computer programs and then read it later with a related program with a slightly different name. Now when I try to do this using Mozella Firefox I don't see a way to download the e-mail bulletin into the directory program file and open it with another program related to the directory program. Firefox only shown the file name to read the download with but doesn't give me an option to download it to the program directory file. Please give me some detailed instructions.

    Hello Explorer.ph
    If safari recognizes it as a PDF then when you open it, you should see something in the right corner below the search box that says open in "" and another with "open in another app". If not try tapping the middle of the screen once tomake it appear. You may need to download iBooks, which is free from the AppStore ,to have an app to download it to.
    I hope this helps.
    Imaestro

  • Standard Text with ' include' option doesn't work with order created by FM

    Hi ABAPers,
    Standard text with 'Include' Option does not work with all the Order created via the Function Module SD_ORDER_CREATE_WWW. Where as Order created via VA01 display the Standard text with 'Include'.
    On my analysis I found that, Order created via FM use  the '*' 'Comment' instead of ':/' 'Command' in the script editor. So the Standard text inserted was considered as a Text instead of command.
    Hence issuing print or print preview, the Script display the INCLUDE statement instead of the text.
    Can you please let me know the reason and the way to rectify it.
    Thanks & Regards
    N.Suresh Kumar

    Hi.
    Make that * command as /: and try in ur program..
    It works..
    Hope it helps...
    Cheers,
    Simha.

  • I get a a message "javascript: void (0)" when I turn on online radio. This problem is related also with other browsers. I reinstalled java but nothing changed

    This problem is related also with chrome, opera and explorer. I reinstalled java but nothing changed

    To avoid confusion:
    *http://kb.mozillazine.org/JavaScript_is_not_Java
    Note the javascript: void(0); is often use as a placeholder URL to indicate that an onclick event is tied to the link to do the actual action.<br />
    If JavaScript is blocked for some reason then this javascript: void(0); links comes into view.
    Make sure that you do not block JavaScript.
    *http://kb.mozillazine.org/JavaScript
    Also make sure that your security software isn't blocking JavaScript if it happens in other browsers as well.
    You can try these steps in case of issues with web pages:
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Is it a bug if a training 'nX' specifier is ignored with advance='NO'?

    I found that Sun Fortran does not count blanks from an 'nX' specifier when writing with advance='NO'. For example, this code:
    write(*,'(A,4X)',advance='NO') '1'
    write(*,'(A)') '2'
    write(*,'(A,4(" "))',advance='NO') '1'
    write(*,'(A)') '2'
    end
    results in:
    12
    1 2
    I recall some discussion that the standards were a bit vague on trailing 'nX' with non-advancing I/O.

    I found that Sun Fortran does not count blanks from
    an 'nX' specifier when writing with advance='NO'. For
    example, this code:
    write(*,'(A,4X)',advance='NO') '1'
    write(*,'(A)') '2'
    write(*,'(A,4(" "))',advance='NO') '1'
    write(*,'(A)') '2'
    end
    results in:
    12
    1 2
    I recall some discussion that the standards were a
    bit vague on trailing 'nX' with non-advancing I/O.The language in the standard was vague, but the standard
    committee recently issued an interpretation that makes it clear.
    Unfortunately, it makes it clear that what Sun f95 is doing is
    wrong. CR 6580748 has been filed against the bug.
    Bob Corbett

  • Table type with include structure

    Hi All,
    How to declare a table type with include structure
    i am declaraing it in the following way its giving epc check of obselete statement,
    could any one tell me how to declare a table type and internal table for the following code.
    DATA:BEGIN OF TY_OUTPUT OCCURS 0.
    DATA:PS_PSP_PNR TYPE EKKN-PS_PSP_PNR.
    INCLUDE STRUCTURE ST_ZCDTT0005.
    DATA:END OF TY_OUTPUT.
    Thanks in advance.

    Hi
    TYPES: BEGIN OF TY_OUTPUT,
             PS_PSP_PNR TYPE EKKN-PS_PSP_PNR.
             INCLUDE STRUCTURE ST_ZCDTT0005.
    TYPES: END OF TY_OUTPUT.
    TYPES: TY_T_OUTPUT TYPE TABLE OF TY_OUTPUT.
    Max

Maybe you are looking for