Converting relative address to absolute address

Is there a way to change relative addresses to absolute
addresses when files are uploaded to a server in dreamweaver?
For example,
given domain:
http://www.home.com/
convert ../images/picture.jpg to
http://www.home.com/images/picture.jpg
upon uploading
I want only files uploaded to the server to have the absolute
address.

>I am just wondering too. I have seen some websites'
source code and they
>seemed
> to have absolute addresses for their links.
There is no benefit to this, however. A simple document or
root relative
link works just fine.
> If you have absolute address
> in a page then you can test changes made on your local
machine without
> uploading it to the server.
You can do that with document/root relative links, too.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"websiteweaver" <[email protected]> wrote in
message
news:ejfp6h$bju$[email protected]..
> I think it could be helpful for editing purpose. If you
have absolute
> address
> in a page then you can test changes made on your local
machine without
> uploading it to the server.
>

Similar Messages

  • How to convert relative url to absolute in URLPortlet?

    Images and links don't work becase they are not getting filtered to absolute urls. <baseHRef> doesn't seem to do it. Isn't URLServices supposed to automatically convert all urls to absolute?

    URL Services internal identifies relative URL and converts them into absolute URL's.
    It uses <BASE HREF="URL"> if available, otherwise the uses <pageUrl> as base URL and constructs the absolute URL's.
    Please post URL to which you facing problem, so that we can find fix this error.

  • Frame 12 converting relative paths to absolute paths

    Hi all,
    We recently upgraded to Frame 12 and now have a persistent issue with relative paths to referenced images becoming absolute.  These paths do not traverse a drive and so I believe Frame should be maintaining a relative path for these. In most cases -- perhaps in all, although I have not done exhaustive testing --  the problem paths are for images on a master page.
    Any idea why this might be occurring and what we can do to fix it?  Our docs team shares files checked out from a server, and each time one of us opens a document, it has an absolute path to a location on another writer's computer.  We each maintain the exact same directory structure for all Frame/image files, and again, the path to the problem images is local and does not traverse the C drive.
    Thanks in advance,
    Shelley

    May or may not be relevant, but do the affected relative paths need to traverse the root directory of the logical drive?
    I seem to recall, in experiments some years ago on FM7.1, that the final /../ needed to be at least one level down.

  • Absolute and relative addressing for stylesheets: issue with IE6 and pages not in the root

    The following conditional comment gives me a problem when I arrange my site into folders (instead of all pages in one directory, or all in the root). The directories are built according to the site hierarchy.
    <!--[if lte IE6]>
    <link rel="stylesheet" media="all" type="text/css" href="../styles/dropdown_ie.css />
    <![endif]-->
    <!--[if IE]>
    My homepage is in the rootfolder, the dropdown_ie.css is in the folder "styles".
    I use the dropdown menu from Stu Nichols http://www.cssplay.co.uk/menus/dd_valid.html and this works as long as all pages are in the same folder (or, in my case, as long as they all are together with the homepage in the rootfolder). But when pages are in different folders, the dropdown_ie.css is not read anymore when using IE6. Other browsers are ok; for those I use:
    <style type="text/css">
    <!--
    @import url("../styles/flyout.css");
    @import url("../styles/dropdown.css");
    -->
    </style>
    What do you suggest I do to get the pages not in the root to read the dropdown_ie.css file when using IE6?
    And I have a feeling that the way I import the styles may not be right, but I am not sure.
    Any help will be greatly appreciated.
    Erik

    I solved this one by changing the relative addressing of my stylesheet location in absolute addressing. And I had to do this not only for the stylesheet, but for all addressing in the html related to this drop down menu:
    href="http://mysafety.be/styles/dropdown_ie.css"
    Changing the location of my files into subdirectories (and removing the spaces in the file names) also means that all my google indexing got screwed up; I submitted to google the whole list of addresses for removal from their cache. It will be another 4 weeks before everything is indexed correctly again, but I guess I better do this now before the site becomes fully operational.

  • Relative Address in a JSP page

    How I will define relative address of a file inside jsp page
    I have the following jsp page under ../web directory
    <html>
    <head>
    </head>
    <body>
    <%
    FileReader f_reader;
    StringTokenizer stoken;
    BufferedReader input = new BufferedReader(new FileReader("file.txt"));
    %>
    </html>
    Here, the file.txt is also in ../web directory
    When I execute the jsp page. I got the error --- file.txt is not found
    I need ur help to short out the problem.
    Thanks in advance
    Ranjan Yengkhom

    I answered similar question yesterday: [http://forums.sun.com/thread.jspa?threadID=5335480].

  • Absolute and relative addressing (Reverse Proxy)

    Hi,
    we want to use a Reverse Proxy Envirement with EP 6 SP15.
    Are the standard links (e.g. navigation) from EP working with relative adressing?
    sample:
    Real address:
    http://www.myserver.com/myapp/mypage.jsp
    address on reverse proxy:
    http://www.otherserver.com/some/other/url/help/index.jsp
    Want to link to the origin page
    http://www.myserver.com/myapp/help/index.jsp (origin)
    over
    http://www.otherserver.com/some/other/url/help/index.jsp
    This means behind a reverse-proxy I have to address the page as follows:
    ../mypage.jsp
    Got anyone experience with this envirement - and is it working?
    Regards
    Thomas
    Message was edited by: Thomas Schilling

    Hi Thomas,
    I guess you will be using Apache as your Reverse Proxy?
    Configure your Apache something like this:
    My httpd.conf file looks like this:
    <VirtualHost IPAddress:80>
    Redirect / https://server.domain/
    </VirtualHost>
    I then have a ssl.conf file that looks like this:
    <VirtualHost IPAddress:443>
    ***Lots of other entries***
    ProxyPass /irj/ https://virtualhost/irj/
    ProxyPassReverse /irj/ https://virtualhost/irj/
    ProxyPass / https://virtualhost/
    ProxyPass /webdynpro/ https://virtualhost/webdynpro/
    </VirtualHost>
    Now obviously edit these ProxyPass, and ProxyPassReverse to suit your needs.
    This should help.
    Regards
    Ian

  • Convert IPv4 address to IPv6 subnet on AD Sites

    Hi,
    We currently run IPv4 on our network. However, it looks like it's recommended to enable IPv6 on DFS servers according to this:
    http://blogs.technet.com/askds/archive/2009/10/28/dfs-referrals-and-ipv6-outta-site.aspx
    I'm having trouble creating an IPv6 subnet in AD Site and Services for my DFS servers since I'm note very familiar with IPv6. I think the IPv6 I see on the servers is the "converted" to IPv6 (see warning message below)??
    DC and DFS servers are Win 2008 R2 Datacenter. It looks like the IPv6 address of the DFS servers are not "matching" the subnets I have created and therefore DFS is not associated with the correct sites causing clients to go over the WAN
    to other DFS servers.
    For example:
    The IPv4 for my DFS servers are:
    156.124.92.202/23
    156.124.78.202/23
    I created these IPv4 subnets:
    156.124.92.0./23 --> SA-Site
    156.124.78.0/23 --> AU-Site
    IPv6 DHCP service is not enabled. No Static IPv6 set for the network connection. The "converted" IP seems to be
    2002:9c7c:5cca::9c7c:5cca
    2002:9c7c:4eca::9c7c:4eca
    I created these IPv6 subnets
    2002::9c7c:5c00/119
    2002::9c7c:4e00/119
    This is what I see on the DFS servers:
    Validating the site associations on every domain controller of the following: SA-DFS-01
    Warning: The server has IP addresses with conflicting site associations
    Host name: SA-DFS-01
    Site: SA-Site
    Domain Controller: SA-AD-01
    Host IP address
    fe80::2c27:42f8:1294:ef4c%10
    2002:9c7c:5cca::9c7c:5cca
    Subnet-Site Mapping in AD
    No mapping exists
    No mapping exists
    Host name: SA-DFS-01
    Site: SA-Site
    Domain Controller: AU-AD-01
    Host IP address
    fe80::2c27:42f8:1294:ef4c%10
    2002:9c7c:5cca::9c7c:5cca
    Subnet-Site Mapping in AD
    No mapping exists
    No mapping exists
    Validating the site associations on every domain controller of the following: AU-DFS-01
    Warning: The server has IP addresses with conflicting site associations
    Host name: AU-DFS-01
    Site: AU-Site
    Domain Controller: SA-AD-01
    Host IP address
    2002:9c7c:4eca::9c7c:4eca
    Subnet-Site Mapping in AD
    No mapping exists
    Warning: The server has IP addresses with conflicting site associations
    Host name: AU-DFS-01
    Site: AU-Site
    Domain Controller: AU-AD-01
    Host IP address
    2002:9c7c:4eca::9c7c:4eca
    Subnet-Site Mapping in AD
    No mapping exists

    Hi,
    We currently run IPv4 on our network. However, it looks like it's recommended to enable IPv6 on DFS servers according to this:
    http://blogs.technet.com/askds/archive/2009/10/28/dfs-referrals-and-ipv6-outta-site.aspx
    I'm having trouble creating an IPv6 subnet in AD Site and Services for my DFS servers since I'm note very familiar with IPv6. I think the IPv6 I see on the servers is the "converted" to IPv6 (see warning message below)??
    DC and DFS servers are Win 2008 R2 Datacenter. It looks like the IPv6 address of the DFS servers are not "matching" the subnets I have created and therefore DFS is not associated with the correct sites causing clients to go over the WAN
    to other DFS servers.
    For example:
    The IPv4 for my DFS servers are:
    156.124.92.202/23
    156.124.78.202/23
    I created these IPv4 subnets:
    156.124.92.0./23 --> SA-Site
    156.124.78.0/23 --> AU-Site
    IPv6 DHCP service is not enabled. No Static IPv6 set for the network connection. The "converted" IP seems to be
    2002:9c7c:5cca::9c7c:5cca
    2002:9c7c:4eca::9c7c:4eca
    I created these IPv6 subnets
    2002::9c7c:5c00/119
    2002::9c7c:4e00/119
    This is what I see on the DFS servers:
    Validating the site associations on every domain controller of the following: SA-DFS-01
    Warning: The server has IP addresses with conflicting site associations
    Host name: SA-DFS-01
    Site: SA-Site
    Domain Controller: SA-AD-01
    Host IP address
    fe80::2c27:42f8:1294:ef4c%10
    2002:9c7c:5cca::9c7c:5cca
    Subnet-Site Mapping in AD
    No mapping exists
    No mapping exists
    Host name: SA-DFS-01
    Site: SA-Site
    Domain Controller: AU-AD-01
    Host IP address
    fe80::2c27:42f8:1294:ef4c%10
    2002:9c7c:5cca::9c7c:5cca
    Subnet-Site Mapping in AD
    No mapping exists
    No mapping exists
    Validating the site associations on every domain controller of the following: AU-DFS-01
    Warning: The server has IP addresses with conflicting site associations
    Host name: AU-DFS-01
    Site: AU-Site
    Domain Controller: SA-AD-01
    Host IP address
    2002:9c7c:4eca::9c7c:4eca
    Subnet-Site Mapping in AD
    No mapping exists
    Warning: The server has IP addresses with conflicting site associations
    Host name: AU-DFS-01
    Site: AU-Site
    Domain Controller: AU-AD-01
    Host IP address
    2002:9c7c:4eca::9c7c:4eca
    Subnet-Site Mapping in AD
    No mapping exists
    Hi,
    The format seems to be incorrect. Please change them as following and check the result:
    2002:9c7c:5cca::/48
    2002:9c7c:4eca::/48
    For more information about 6to4 address, please see:
    http://technet.microsoft.com/en-us/library/cc756770(WS.10).aspx
    http://technet.microsoft.com/en-us/library/cc757359(WS.10).aspx 
    Hope it helps.
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
    This can be beneficial to other community members reading the thread.

  • Convert IPv6 address to decimal

    How do we convert an IPv6 address to its decimal equivalent using java?
    I could find different tools on Internet but not the java code for the same.
    Any help would be much appreciated.
    Thanks.

    Hello EJP
    Please visit the following URL:
    https://www.ultratools.com/tools/decimalCalcResult?ipAddress=805b%3A2d9d%3Adc28%3A0000%3A0000%3Afc57%3Ad4c8%3A1fff
    This converts the IPv6 address (which is in hexadecimal format) to a decimal number.
    I need to implement this functionality. I could not find any method in java.net.Inet6Address class for this.
    To convert an IPv4 address which is in String format to its decimal equivalent, we can use following method:
    <code>
    long stringToLong(String ipAddress) {
              String[] octets = ipAddress.split("\\.");
              long intValue = 0;
              long currentOctet;
              for (int i = 0; i < octets.length; i++) {
                   currentOctet = new Integer(octets[(octets.length-1)-i]).intValue();
                   intValue = (currentOctet << i*8) | intValue;
              return intValue;
    </code>
    Edited by: 803674 on May 26, 2011 12:22 AM

  • Convert AOL address book to Importable format for OS X MAIL

    I just looked [ using BBEdit ] at our address book from AOl, which we were using when we were using OS 9.2.2. We were using AOL v. 5.0 - which was the best that we could use with OS 9.2.2.
    With BBEdit, I could make out the person names and many of the email addresses in the AOL address book. BUT, it wasw such a "jumble" that editing the file would have been an eternity.
    Does anyone have any suggestions on how to transfer the info from the AOL address book to OS X v.10.4.6, etc application ADDRESS BOOK ?????
    Thanks for your help -- in advance.
    Samuel

    Address Book has an import function. Have you tried it? There are three formats, one of them text. I don't know AOL, but you should be able to at least export it to a text file.

  • Download & Convert Palm Address Book

    I have been using a Palm Treo 650 for a very longtime and have just purchased a Nokia E71 and I am unable to transfer my address book to my new phone. Is there any conversion software I can use?
    Any suggestion will be highly appreciated

    Hello
    You have a number of options but I think the simplest would be to use Outlook.
    The Palm can sync to Outlook as can the E71 using PC Suite.
    Do you have access to Outlook?
    John32

  • [SOLVED]new title: convert relative to absolute paths in bash

    So the issue was not MPD, i hadn't noticed my script was creating a bad symlink when i passed it a relative path.  new problem, the simplest way to accept any relative path as argument and return an absolute path for use throughout the script.  i'm off to google...
    my current version of the solution as a bashrc function:
    rel2abs() {
    local file="$(basename "$1")"
    local dir="$(dirname "$1")"
    pushd "${dir:-./}" &>/dev/null && local dir="$PWD"
    echo "$dir/$file"
    popd &>/dev/null
    :: OP ::
    so i have this little script that is supposed to allow me to one-time-play an audio file sitting outside my mpd directory by creating a symlink to the file, updating the db, then playing the symlink.  everything's great accept mpd won't follow the symlink when creating/updating the db.
    i've restarted mpd and re-create[d]-db both as myself (mpd runs as me) and as root many, many times.  it never changes.  the symlink file is never added to my database... is the manpage lying?  do i file a bug?  can anyone else reproduce?
    i don't think it's a perm issue, mpd runs as me and the symlink's target and destination are both under ~/
    ┌─[ 13:30 ][ blue:~ ]
    └─> pacman -Q mpd
    mpd 0.15.1-1
    man mpd.conf wrote:
    follow_outside_symlinks <yes or no>
           Control if MPD will follow symbolic links pointing  outside  the  music  dir.   You  must
           recreate the database after changing this option.  The default is "yes".
    follow_inside_symlinks <yes or no>
           Control  if  MPD  will  follow  symbolic links pointing inside the music dir, potentially
           adding duplicates to the database.  You must recreate the database  after  changing  this
           option.  The default is "yes".
    /etc/mpd.conf wrote:######################### OTHER OPTIONS ########################
    gapless_mp3_playback                    "yes"
    #save_absolute_paths_in_playlists       "no"
    #metadata_to_use        "artist,album,title,track,name,genre,date,composer,performer,disc"
    follow_outside_symlinks                 "yes"
    follow_inside_symlinks                  "yes"
    ┌─[ 13:33 ][ blue:~ ]
    └─> ll Music/temp/
    total 0
    lrwxrwxrwx 1 patrick patrick 36 2009-08-13 13:30 apocalyptica_beyond_time.mp3 -> Dropbox/apocalyptica_beyond_time.mp3
    ┌─[ 13:37 ][ blue:~ ]
    └─> mpc ls temp
    ┌─[ 13:37 ][ blue:~ ]
    └─>
    i guess i can resort to simply copying the file into the temp directory rather than symlinking... but you archers know how it is, it just bothers you when something should work and it doesn't...
    comments and pointers always appreciated.
    Last edited by brisbin33 (2009-08-17 20:35:21)

    Mind posting your script? I've been using the following perl script to play a file outside of the music directory using mpd (found through the mpd wiki, I think). I'm up for a simpler solution if you found one!
    #!/usr/bin/perl
    # mpc-play
    # version 0.2
    # by Ilya "Voyager" Schurov (http://comm.noo.ru/iv-en/)
    $MUSIC_PREFIX="/home/[username]/music";
    $TEMP_DIR="tmp";
    $SCRIPT_NAME="mpc-play";
    # warning! all symlinks in $MUSIC_PREFIX/$TEMP_DIR will be lost on start!
    $DEBUG=0;
    $PWD=`pwd`;
    chomp $PWD;
    if(!@ARGV)
    print "Usage:\n$SCRIPT_NAME <files-to-play>\n";
    say_and_do("mpc --no-status stop",$DEBUG);
    say_and_do("mpc --no-status clear",$DEBUG);
    # removing symlinks from $TEMP_DIR
    while(<$MUSIC_PREFIX/$TEMP_DIR/*>)
    unlink if(-l);
    foreach $file (@ARGV)
    $link=$file;
    # stripping slashes from arguments
    $link=~s/\//_/g;
    if($file!~/^\//)
    $file="$PWD/$file";
    symlink("$file","$MUSIC_PREFIX/$TEMP_DIR/$link")
    || die("Can't create symlink from $file to $MUSIC_PREFIX/$TEMP_DIR/$link: $!");
    push @links, $link;
    say_and_do("mpc update $TEMP_DIR",$DEBUG);
    # now we need to wait while mpd updating DB
    do
    $stat=`mpc`;
    sleep(0.1);
    }while($stat=~/^Updating DB/m);
    # generating playlist
    foreach $link(@links)
    $link=~s/\`/\\\`/g;
    say_and_do("mpc --no-status add \"$TEMP_DIR/$link\"",$DEBUG);
    #let's the music begins! :)
    say_and_do("mpc play",$DEBUG);
    sub say_and_do
    my $str=shift;
    my $debug=shift;
    print "$str\n" if($debug);
    system($str);
    Thanks!
    Scott

  • How to convert ip address to hostname

    Hi
    I want to know the process to covert ip address to dns name (e.g 10.12.138.40 -> xyz.domain.net after the Siebel, Oracle BI, SOA installation has been completed
    If question isn't clear please let me know. Any help would be appreciated
    Thanks

    Anish,
    Here are the forums where they can provide your guidance regarding OBI and SOA:
    OBI: Business Intelligence Applications
    SOA: SOA Suite
    Thanks,
    Wilson

  • How to find relative address of a file?

    I have a folder structure as below:
    A
    +-B
      +-D.class
      +-D.java
    Daop.propsThere is a folder named A along with a file Daop.props (not inside folder A) . Inside A there is another folder B which contains D.java and D.class. From this D.java how to access "Daop.props".
    Consider the following code inside D.java ..
    var1.loadSystemProps(getClass().getResourceAsStream("Daop.props"));The above statement searches inside B directory..
    var1.loadSystemProps(getClass().getResourceAsStream("/Daop.props"));The above statement searches inside A directory which is just above B., ie., the above code searches the neighbors of B...
    How to make it search neighbors of A... what is the code for it...
    For the given directory structure the both of the code shows java.lang.NullPointerException
    Please help...

    I guess you could also use the classLoaders get resource, which has no concept of "current directory with the jar".
    o.getClass().getClassLoader().getResourceAsStream("Daop.props")http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html#getResource(java.lang.String)
    Finds the resource .... in a way that is independent of the location of the code.
    Hope that helps, even if I'm a bit late.
    Cheers. Keith.

  • Converting Relational query to XML

    set serveroutput on
    This is the code of a query to convert a relational query to xml. This code runs fine when I place the where condition at the end. e.g. where h.hospital_id=1. however when i place no such condition it begins returning errors such as
    set serveroutput on
    set long 10000000
    set linesize 50000
    set lines 20000
    set pagesize 0
    set pages 5
    set feedback off
    set head off
    SET TRIMSPOOL ON
    set long 200000000
    set linesize 32000
    set pagesize 0
    set pages 0
    set feedback off
    set head off
    Select XMLELEMENT("have:HospitalStatus",XMLAttributes('urn:oasis:names:tc:emergency:EDXL:HAVE:1.0 edxl-have_cs01.xsd' AS
                                      "xsi:schemaLocation",
                                              'urn:oasis:names:tc:emergency:EDXL:HAVE:1.0' AS
                                      "xmlns:have",
                                    'http://www.georss.org/georss' AS
                                      "xmlns:n3",
                                    'http://www.opengis.net/gml' AS
                                      "xmlns:gml",
                                    'http://www.w3.org/2001/XMLSchema-instance' AS
                                      "xmlns:xsi",
                                    'urn:oasis:names:tc:ciq:xal:3' AS
                                      "xmlns:xal",
                                    'urn:oasis:names:tc:ciq:xnl:3' AS
                                      "xmlns:xnl",
                                    'urn:oasis:names:tc:ciq:xpil:3' AS
                                      "xmlns:xpil"                                        
         xmlagg(                    
         xmlelement("have:Hospital",
         xmlforest
              (     h.hospital_id,          
                   xmlforest(
                   xmlforest(
                   h.name,               
                   h.info,          
                   h.addresses     ,          
                   h.contact_numbers) as "OrganizationInformation",     
                   xmlforest(
                   h.geo_location) as "OrganizationGeoLocation",
                   h.comments) as "Organization"
                   xmlelement("have:EmergencyDepartmentStatus",
                   (select xmlagg(
                   xmlforest(
                             eds.date_updated,
                   xmlforest(
                             eds.ems_traffic_status,
                             eds.ems_traffic_reason) as "EMSTraffic",          
                   xmlforest(
                             tcl.url,
                             tc.date_updated,
                             tc.code_value,
                             tc.ems_capacity
                        ) as "EMSCapacity",     
                   xmlforest(
                             tcl.url,
                             tc.date_updated,
                             tc.code_value,
                             tc.ems_census) as "EMSCensus",
                             xmlforest(
                             eds.ems_amb_offload_status,
                             eds.ems_amb_offload_min) as "EMSAmbulanceStatus",
                             xmlforest(
                             eds.ems_air_offload_status,
                             eds.ems_air_offload_min )as "EMSAirTransportStatus"
                   from EmergencyDepartmentStatus eds,TriageCode tc,TriageCodeListURN tcl
                   where eds.hospital_id = h.hospital_id and tc.hospital_id = h.hospital_id and tcl.hospital_id = h.hospital_id)),     
                             xmlelement("have:HospitalBedCapacityStatus",
                   (select xmlagg(xmlelement("have:BedCapacity",
                   xmlforest(
                             mb.date_updated,
                             mb.bed_no,
                             mb.bed_type,
                             xmlforest(
                             mb.capacity_status,
                             mb.available_count,
                             mb.baseline_count,
                             mb.additional_24hr,
                             mb.additional_72hr) as "Capacity",
                             mb.comments
                   from MainBeds mb
                   where mb.hospital_id = h.hospital_id and mb.bed_no NOT IN(select mb.bed_no from MainBeds mb, SubBeds sb where mb.bed_no=sb.bed_no )
                   (select xmlagg(xmlelement("have:BedCapacity",
                   xmlforest(
                             mb.date_updated,
                             mb.bed_no ,
                             mb.bed_type,
                             xmlforest(
                             mb.capacity_status
                                                 ) as "Capacity",
                             mb.comments
                                  ),(select xmlagg(
                   xmlforest(
                                  sb.date_updated,
                                  sb.bed_no,
                                  sb.sub_bed_no,
                                  xmlforest(
                                  sb.capacity_status,
                                  sb.available_count,
                                  sb.baseline_count,
                                  sb.additional_24hr,
                                  sb.additional_72hr) as "Capacity",
                                  sb.comments
                                  )from SubBeds sb  where mb.bed_no = sb.bed_no and sb.bed_no=h.hospital_id )
                   from MainBeds mb
                   where mb.hospital_id = h.hospital_id and mb.bed_no in (select unique mb.bed_no from MainBeds md, SubBeds sb where sb.bed_no=mb.bed_no))
                   xmlelement("have:ServiceCoverageStatus",
                   (select xmlagg(
                   xmlforest(
                             scs.date_updated,
                             scs.burn,
                             xmlelement("CardiologySubType",
                                  xmlforest(scs.cardiology_invasive,
                                  scs.cardiology_non_invasssive)) as "CardiologyIndicator",
                             scs.dialysis,
                             scs.emergency_dept,
                             scs.hyperbaric_chamber,
                             scs.infectious_diseases,
                             scs.neonatology,
                             xmlforest(xmlforest(
                                  scs.neurology_invassive,
                                  scs.neurology_non_invasssive) as "NeurologySubType") as "NeurologyIndicator",
                             xmlforest(xmlforest(
                                  scs.obgyn_with_labor,          
                                  scs.obgyn_without_labor) as "OBGYNSubType")as "OBGYNIndicator",
                             scs.opthalmology,
                             scs.orthopedic,
                             scs.pediatrics,
                             xmlforest(
                                  xmlforest(scs.psychiatry_adult_general,
                                  scs.psychiatry_pediatric) as"PsychiatrySubType")as "PsychiatryIndicator",
                             xmlforest(
                                  xmlforest(
                                  sst.date_updated,
                                  sst.general_ward,
                                  sst.adult_general,
                                  sst.pediatrics,
                                  sst.orthopedics,
                                  sst.nuero_surgery,
                                  sst.facial,
                                  sst.cardio_thoracic,
                                  sst.hand,
                                  sst.reimplantation,
                                  sst.spinal,
                                  sst.vascular,
                                  sst.anesthesia) as "SurgerySubTypes") as "SurgeryIndicator",
                             xmlforest(xmlforest(
                             scs.ambulance_services,
                             scs.air_transport_services) as "TransportServicesSubType") as "TransportServicesIndicator",
                             xmlforest(xmlforest(
                             scs.trauma_service,
                             scs.trauma_service_level) as "TraumaCenterServicesSubType")as "TraumaCenterServicesIndicator"
                   from ServiceCoverageStatus scs, SurgerySubTypes sst
                   where scs.hospital_id = h.hospital_id and sst.hospital_id = h.hospital_id)),
                   xmlelement("have:HospitalFacilityStatus",
                   (select xmlagg(     
                   xmlforest(
                             hfs.date_updated,               
                             hfs.hospital_eoc_status,
                             hfs.hospital_eoc_plan,          
                             hfs.clinical_status,
                             xmlforest(
                                  dc.date_updated,
                                  dc.decon_capacity_status,
                                  dc.amb_patients_capacity,
                                  dc.non_amb_patients_capacity) as "DeconCapacity",
                             xmlforest(
                             mc.date_updated,
                             mc.morgue_capacity_status,
                             mc.morgue_capacity_units) as "MorgueCapacity",
                             hfs.facility_status,               
                             hfs.security_status,     
                             xmlforest(
                                  ah.date_update,
                                  ah.admissions,
                                  ah.discharges,
                                  ah.deaths) as "Activity24hr",
                             hfs.comments,
                             hfs.clinical_operations,     
                             hfs.resources_information
                   from HospitalFacilityStatus hfs,Activity24hr ah,MorgueCapacity mc,DeconCapacity dc
                   where hfs.hospital_id = h.hospital_id and ah.hospital_id = h.hospital_id and mc.hospital_id = h.hospital_id
                   and dc.hospital_id = h.hospital_id)),     
                   xmlelement("have:HospitalResourceStatus",
                   (select xmlagg(
                   xmlforest(
                             hr.date_updated,
                             hr.staffing,
                             hr.facility_operations,
                             hr.clinical_operations,     
                             hr.comments
                   from HospitalResourceStatus hr
                   where hr.hospital_id = h.hospital_id)),
              xmlforest(h.last_update_time) as "UpdateTime"
              ))).extract('/*')
    from hospital h;__________________________________________________________________________________________________________
    ERROR:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00225: end-element tag "HOSPITAL_EOC_STATUS" does not match start-element tag "have:HospitalStatus"
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 111
    Edited by: 872489 on 14-Jul-2011 03:59
    Edited by: 872489 on Jul 14, 2011 9:11 AM
    Apologies for lack of formatting earlier

    Please repost this and use the tag with some decent formatting.
    See the FAQ Posting Guidelines on the main page of this XMLDB OTN Forum                                                                                                                                                                                                                                                                                               

  • Converting Relational Tables to Object Views

    We have extra information stored for each
    field in a table. We call these Vertical
    Tables:
    rowid primary key - ties to normal tab
    column_name "" - ties to column in ""
    text_value the value if text
    reliability rating for level of accuracy...
    date of entry
    Yes there are normal tables that the applications also access if they just need the value of the columns.
    So I want to take this to object views. This way, while oracle is learning how to alter objects, we can still maintain our data and old application while converting to the use of objects.
    I thought the best solution would be Type(s) based on the orignal data type. A generic type, text65_t could be created to hold every column that is less than 65 characters long:
    CREATE TYPE text65_t AS OBJECT
    WITH OBJECT IDENTIFIER(row_id) AS
    row_id VARCHAR2(30),
    value VARCHAR2(65),
    reliability NUMBER(1,0),
    doe DATE
    A view can easily be created of this. The
    mapping is one to one.
    My problem is the next level. How can I build another view on top of text65_t, integer_t, date_t... that ties all of the
    vertical rows back into a normal relational table or object.
    Thanks,
    bill
    null

    Hi migration group,
    I realize this is kind of off topic for
    this discussion group. Where can I ask
    questions like this?
    thanks
    bill

Maybe you are looking for