Anchored graphics in margin intruding into text column

I am creating what is basically a textbook chapter, two columns of text and a wide margin away from the spine. I am positioning some notes in the margin, but also some graphics. Some of the graphics need to be big enough that they intrude into the text column and the text needs to wrap around them. Have done this manually and happy with the results, but would like to have at least some of these graphics anchored to the text. Learning to do this was a long and painful process, and I thought I should document my findings, and ask for any suggestions for improvement.
I found the two following posts of particular use:
http://indesignsecrets.com/wrapping-text-around-an-anchored-object.php
http://blogs.adobe.com/indesignchannel/2007/11/anchored_frames_productivity_s.html
However, the free tool mentioned in the last post is no longer available.
Here is what I did.
First, I set up a couple of keyboard shortcuts.
Edit > Keyboard Shortcuts > Text and Tables > Insert Anchored Object/Go to Anchor Marker > Alt+Shift+I
Edit > Keyboard Shortcuts > Object Menu > Fitting: Fit Frame to Content > Alt+Shift+F
Next, I set up defaults for inserting anchored objects. Note that these preferences are saved in the file, and not in the Preferences.
(make sure nothing is selected) Object > Anchored Object > Insert (Defaults) > Leave defaults except:
- Object Style: SAR Topics Anchored Graphic (or whatever Object Style you wish; mine includes a word-wrap)
- Position: Custom
   - Relative to Spine
   - Anchored Object  Reference point: top-left and top-right
   - Anchored Position  Reference Point: mid-left and mid-right
   - X Relative To: Page Edge X Offset -3p0
   - Y Relative to: Line (baseline) Offset 2p0 (needed as anchored position ignores the wordwrap when you enlarge the frame to fit objects that intrude into the text frame)
   - Check “Keep Within Top/Bottom Column Boundaries”
I suggest as you are trying this, doing the following until at least you're sure that things are working correctly:
- To view the anchor markers in the text, choose Type > Show Hidden Characters.
- To view a dashed line from an anchor marker to its associated custom-positioned object, select the object and choose View > Extras > Show Text Threads. The thread extends from the anchor marker to the current proxy point for the anchored object.
Place your text cursor where you want your anchored graphic to anchor.
Press Alt+Shift+I.
A default 6p0 x 6p0 frame should appear in the margin.
Click on the graphic you wish to put into the anchored frame. Right-click and copy.
Select the frame in the margin.  Right-click and "paste into."
Press Alt-Shift-F and this will fit the frame to the graphic.
This seems to be a reasonably fast and effective workflow.
If anyone has any suggestions for improvement, please let me know.
I do have one problem: when I was playing around with this, InDesign crashed, and the file I was trying to do this on is now corrupted and my Alt+Shift+F won't work; the frame won't resize to fit the graphic. I tried trashing my preferences, but then found out the Insert Anchored Object defaults are stored in the file on which I was working, not the actual two InDesign preferences files. 

Luckily I had a recent backup of my file so restored it and got rid of the corruption I mentioned above.
Ran into another apparently unsurmountable problem, as described below, and have abandoned anchored graphics for this project.
If you have two columns on a left page, where the margin is on the far left, anchored objects with wordrap don't work if your anchor is in the second column. That's because ALL of the text in the left column is "before" the anchor, and ignores the anchored object's wordwrap.
Until this is fixed, I'm abandoning anchored graphics and will place them all manually.

Similar Messages

  • How to import many large graphic images to fit into column width?

    I have a 2-column layout and about 150 large graphic images which must be imported so that they fit exactly into the column width. These are bitmaps which have all the same dimensions. All of them will need a border (stroke). And they should be inline graphics because they belong to exact positions in the text flow.
    What would be the sensible approach to that (apart from scripting which I have not done yet)? I tried to define an object style which has the attribute "Fit content to frame", but this does not scale the image to the column size. How can I avoid to format 150 those images manually?

    It may be easier to change the ppi in photoshop so the image can be placed at the exact size.
    so if the image is 10 inches and the file is 300 ppi
    with resample image unchecked change the width to whatever you want it say 2 inches no the ppi will automatically change to 1500 ppi. Save. If you are creating a PDF make sure these images are not downsampled if you need the resolution.
    another way if all images are the same size would be to size one and place it where all the images go and relink to the other pics, when you relink it should retain the properties of the previous pic.

  • When I import a text file(comma separated )into a numbers spread sheet all the data goes into one column. Why does the text not go into separate columns based on the commas.

    When I import a text file(comma separated) into a numbers spreadsheet all the data goes into one column instead of individual columns based on the comma separators.  Excel allows you to do this during the import..  Is there a way to accomplish this in numbers without opening it in Excel and the importing into Numbers.

    Your user info says iPad. This is the OS X Numbers forum. Assuming you are using OS X… Be sure the file is named with a .csv suffix.
    (I don't have an iPad, so I don't know the iOS answer.)

  • Concacenate Many Columns text into one Column

    Hi,
    I have many columns with text in it. I would like to ideally concatenate these column content into just ONE column.
    Please help work out how to do this as I have no idea.
    I am somewhat familiar with CMD so if you can help with this urgently that would be SO awesome.
    Thanks
    :)

    890635 wrote:
    Thanks again...
    So I want to display this data eventually on forms. So I think I do need to create a blank column.
    so let's say I want the concatenated data to end up in "Final_Delivery".
    How to do that?
    Thank youI dont have any idea about Forms...But just a guess that for form as well you must be writing some SQL, and you can use the sql there directly. Otherwise if you want to get it inserted into new column in existing table....First you have to add a new column to your table and then run update Statement to populate that data..similar to this
    SQL> select * from emp;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO       TEST INFO
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
          7839 KING       PRESIDENT            17-NOV-81       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO       TEST INFO
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    10
    14 rows selected.
    SQL> update emp set info=to_char(empno)||' '||ename||' '||job;
    14 rows updated.
    SQL> select * from emp;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO       TEST INFO
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20            7369 SMITH CLERK
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30            7499 ALLEN SALESMAN
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30            7521 WARD SALESMAN
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20            7566 JONES MANAGER
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30            7654 MARTIN SALESMAN
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30            7698 BLAKE MANAGER
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10            7782 CLARK MANAGER
          7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20            7788 SCOTT ANALYST
          7839 KING       PRESIDENT            17-NOV-81       5000                    10            7839 KING PRESIDENT
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30            7844 TURNER SALESMAN
          7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20            7876 ADAMS CLERK
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO       TEST INFO
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30            7900 JAMES CLERK
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20            7902 FORD ANALYST
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    10            7934 MILLER CLERK
    14 rows selected.
    SQL>Regards,
    Navneet

  • Read text file into clob column

    Dear Oracle users and Oracle support,
    I have a text file that includes hundreds of data entries. The format is below. What I need to do is read each entry (
    <DATALOAD ................</DATALOAD>) into the CLOB column as a table record. Then create a loop in the table to convert each record into XML data type. I have general idea on how to convert CLOB to XML. The difficult part to me is read the each entry in the text file to CLOB table. Please let me know what technique I should use. Any recommendation and sample code are welcome! I appreciate!
    Thanks,
    Bing
    <DATALOAD ................</DATALOAD>
    <DATALOAD ................</DATALOAD>
    <DATALOAD ................</DATALOAD>
    <DATALOAD ................</DATALOAD>

    RBYL wrote:
    Hi,
    Thank you for your response. What I want to achieve is read the text file into ClOB column. There are hundreds reocords in the text file. The format is below. Each entry is '<DATALOAD (sensitive data here, use....... instead)</DATALOAD>' that needs to be read into clob table as a record. That is basically what I need to achieve.
    <DATALOAD ................</DATALOAD>
    <DATALOAD ................</DATALOAD>
    hundreds of them here........
    <DATALOAD ................</DATALOAD>
    <DATALOAD ................</DATALOAD>So, is it really a text file or is it a well structured XML file?
    Just reading it into a CLOB to process is not likely to be the best way.
    If each line of the file is a record, then you're likely to be better using something like External Tables.
    If it's a structured XML file, then it can be read using CLOB functionality into an XMLTYPE datatype and then shredded down into relational table structures.
    Be more clear in what your requirements are and we can help you better.
    {message:id=9360002}

  • How do I turn selected text in a Pages document into two columns without turning the whole document into two columns?

    How do I turn selected text in a Pages document into two columns without turning the whole document into two columns?

    Menu > Insert > Layout Break (before and after text) > click in text > Inspector > Layout > Layout > columns: 2
    Peter

  • Pointer doesn't change into the loaded graphics icon or the loaded text icon

    My pointer doesn't change into the loaded graphics icon or the loaded text icon when placing images or text. How can I fix it?
    Thanks!

    You only need to ask once.
    Quick question

  • How do I copy the value of a managed metadata field into a text column in the same list?

    I have a SharePoint designer workflow that I am trying to use to copy the value of a managed metadata field, into a text field. So basically my workflow is this...
    Stage 1: Set [MyColumnValue] to [%Current Item:MyColumn_0%]
    Go to End of Workflow
    This seems like a simple enough task, but each time an item is added or updated in my List, all I get for my new column [MyColumnValue] is just a link that says "Stage 1". Am I missing something here? Shouldn't this workflow be able to just copy
    the value from the managed metadata column to the text column?

    When you create a workflow on a list/library it automatically creates a new FIELD with the name of workflow and it's status. It sounds like you're viewing the Workflow status field, and not the field that the workflow is putting the values into. Make sense?
    So edit the view and add the new field in.

  • Copying TEXT column from flat file into SQL results in empty fields....

    I'm copying TEXT column from SQL to Flat file (ragged right fixed width) - DT_TEXT. It copies fine and I''ve checked the output file. Now, while trying to copy the flat file to sql server in another system. I find all the fields are empty.
    When I preview the source from flatfile, I see all the entries there. But it copies other fields but the field with DT_TEXT  is empty.
    This is when I preview
    SQL Table output
    Any help will be helpful!!!

    Hi, I'm not sure If I'm understanding what you're saying. The data got copied from SQL to Flat file. I've double checked the flat file and I see the DT_TEXT data there. The size of file also gives an indication that there's existence of TEXT Data
    But, when I copy that data back to sql again (which I can also preview before the load), The DT_TEXT values goes missing. Same when I copy to Excel as CSV or as a Flat file. I don't see text data.
    The TEXT data resides on the first output. But when I try to extract to other format from that output, it doesn't come out.

  • Positioning anchored graphic outside of table

    I have a single-cell table with a small graphic that is anchored so that it is positioned to the left of the table and is particially in the margin area. The reason that the graphic can't be in a table cell is because it has to jut into the margin, past the text frame.
    The table is inserted periodically throughout several documents. The lines of text in the table can vary -- sometimes it will have 1, 2, 3 lines of text in the cell.
    I need to have the anchored graphic centered vertically to the left of the text in the cell -- the "y" distance for the anchored graphic varies according to the number of lines in the table cell. Is there a way to automatically center the graphic so that it doesn't need to be manually positioned for each table?

    Make that frame the height of your cell and center its contents vertically. .. Oh wait, your row heights may be different, so you still have to resize the anchored frame. Anchor the frame into a cell that has its own contents vertically centered?
    Perhaps there is an easier way. Re-reading from the top, you state "The reason that the graphic can't be in a table cell is because it has to jut into the margin, past the text frame." Well, a table can jut out into the margin at the right, if it is wider than the text frame -- a flaw/oversight/"feature" that has been put to good use for creating straddling headlines over two columns.
    Let me put this question to you: what happens if you (a) insert a new column to the left of your table to put the graphic in, thus making the table too wide, and then (b) **Sanity Warning! Untested Claim Follows** set the paragraph of the table to right alignment?

  • Images in text column to move?

    Hi,
    I placed an image over a column of text and used the text wrap tool. Now, is there a way for the image to move and shift down and keep in place with the copy as I add more text either before or after this article? I'm imagining, some sort of linking tool?
    This would avoid having to continuously move images so that they keep in place (in relation to the copy) as more articles are added.
    Thanks!

    Yes, Quark was able to anchor frames going back to at least version 3,
    probably further. And it worked the same way: cut the frame, paste into
    text. Quark had fewer anchored frame options, in fact, none that I
    remember. Objects pasted inline, so you could baseline shift them, but
    that was about it. I pretty much stopped using Quark after version 4, so
    maybe its anchored frame options have improved in recent versions.
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

  • IWeb sites are slow to upload. text columns turn to heavy png files

    Hi!
    Yes I've noticed that iweb sites for some odd reason are slower to load on any browser. No matter what the hosting is. I use Me.com for a few years and iWeb as I don't have the time or patience to bother with Dreamweaver. I use Me.com for hosting as well as another web hosting server. If there is graphic material on the page, it takes so long to open. Apple must do something about it for sure.
    The program iWeb itself doesn't open up fast enough if you have more than 3 pages on it (which any normal site would have). I'm glad Apple made good changes in iWeb09, but it needs to do something about the speed of the program, the sites it makes and how it processes simple matter on it.
    Even though, I have come across some good examples of iWeb made sites that are easy and relatively faster to open or they open at a normal speed. The authors also have used flash material on their iWeb sites. I have a non-registered program (web site Maestro) that claims to ease up and streamline the graphic and other heavy content on a iWeb site to make it lighter with loading.
    But the unregistered version works on 70 percent files only. And I don't really notice any difference with it either. So I'm doubtful of buying the full version.
    Any thoughts? Solutions? Would really appreciate.
    ANOTHER ISSUE that I have discovered while making iWeb site is that a text column put on a shape after publishing turns into a heavy PNG picture file that can weight almost upto 1 whole megabyte!!!
    And you keep wondering why the darn page is so slow to open!!! Cuz a simple text could've been just about 50kb. But it turns into a 900kb picture in png!!! Is there a way to change this?? I guess, taking out the picture from the published site folder and reediting it in - say - Photoshop reducing its size may help. But its so cumbersome and arduous to go into every darn folder and open all the text now converted into pics and re-edit them!! And then their reduced quality will make the text look feeble and bad quality too.
    This is a problem that APPLE iWEB experts Must work on. iWeb gives a certain flexibility as its like a free flowing canvas. But then its also a known fact that iWeb sites are exceptionally heavier to open, unless you know many other tweaks here and there to make it work right. But again, this is contrary to the purpose of iWeb, cuz its made for amateur site makers.
    I wish there is a work around this thing really.
    ANY SUGGESTIONS FRIENDS?? WOULD LOVE TO HEAR. PLEASE SHARE YOUR THOUGHTS AND SOLUTIONS.
    Thanks.
    Regards,
    Nitesh

    Welcome to the Apple Discussions. Shapes by their very nature are graphic elements that end up a png file whether there's text in them or not. You should try adding the text in a text box above the shape and see if there's any difference. Just be sure to use a Web Safe Font and not add any enhancements that will turn it into a image file:
    Click to view full size
    You may not notice a difference with loading with WSM but those with Internet Explorer should. Have you tested your site with and without WSM on a PC?
    In WSM you can set the amount of optimizing for graphics. I've set it at about 60% (moderate) and haven't tested other settings for image quality. I'm sure a lower quality level, i.e. more compression, will have a impact on file loading. I just don't have a feel for the greatest amount of compression that will still have acceptable image quality. You'll just have to experiment.
    If your site is a commercial site then using a commercial hosting server is the best option. Also, it's reported that using a Text Based Navbar instead of iWeb's java based one will help dark side compatibility.
    Be sure to put in feature requests for the improvements that you see necessary to Apple via http://www.apple.com/feedback/iweb.html.
    OT

  • How to read/write .CSV file into CLOB column in a table of Oracle 10g

    I have a requirement which is nothing but a table has two column
    create table emp_data (empid number, report clob)
    Here REPORT column is CLOB data type which used to load the data from the .csv file.
    The requirement here is
    1) How to load data from .CSV file into CLOB column along with empid using DBMS_lob utility
    2) How to read report columns which should return all the columns present in the .CSV file (dynamically because every csv file may have different number of columns) along with the primariy key empid).
    eg: empid report_field1 report_field2
    1 x y
    Any help would be appreciated.

    If I understand you right, you want each row in your table to contain an emp_id and the complete text of a multi-record .csv file.
    It's not clear how you relate emp_id to the appropriate file to be read. Is the emp_id stored in the csv file?
    To read the file, you can use functions from [UTL_FILE|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm#BABGGEDF] (as long as the file is in a directory accessible to the Oracle server):
    declare
        lt_report_clob CLOB;
        l_max_line_length integer := 1024;   -- set as high as the longest line in your file
        l_infile UTL_FILE.file_type;
        l_buffer varchar2(1024);
        l_emp_id report_table.emp_id%type := 123; -- not clear where emp_id comes from
        l_filename varchar2(200) := 'my_file_name.csv';   -- get this from somewhere
    begin
       -- open the file; we assume an Oracle directory has already been created
        l_infile := utl_file.fopen('CSV_DIRECTORY', l_filename, 'r', l_max_line_length);
        -- initialise the empty clob
        dbms_lob.createtemporary(lt_report_clob, TRUE, DBMS_LOB.session);
        loop
          begin
             utl_file.get_line(l_infile, l_buffer);
             dbms_lob.append(lt_report_clob, l_buffer);
          exception
             when no_data_found then
                 exit;
          end;
        end loop;
        insert into report_table (emp_id, report)
        values (l_emp_id, lt_report_clob);
        -- free the temporary lob
        dbms_lob.freetemporary(lt_report_clob);
       -- close the file
       UTL_FILE.fclose(l_infile);
    end;This simple line-by-line approach is easy to understand, and gives you an opportunity (if you want) to take each line in the file and transform it (for example, you could transform it into a nested table, or into XML). However it can be rather slow if there are many records in the csv file - the lob_append operation is not particularly efficient. I was able to improve the efficiency by caching the lines in a VARCHAR2 up to a maximum cache size, and only then appending to the LOB - see [three posts on my blog|http://preferisco.blogspot.com/search/label/lob].
    There is at least one other possibility:
    - you could use [DBMS_LOB.loadclobfromfile|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lob.htm#i998978]. I've not tried this before myself, but I think the procedure is described [here in the 9i docs|http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96591/adl12bfl.htm#879711]. This is likely to be faster than UTL_FILE (because it is all happening in the underlying DBMS_LOB package, possibly in a native way).
    That's all for now. I haven't yet answered your question on how to report data back out of the CLOB. I would like to know how you associate employees with files; what happens if there is > 1 file per employee, etc.
    HTH
    Regards Nigel
    Edited by: nthomas on Mar 2, 2009 11:22 AM - don't forget to fclose the file...

  • Want to insert a XSL file's data into a column of type SYS.XMLTYPE??

    Hello Friends
    I want to insert a XSL file's data into a column of a table of type SYS.XMLTYPE. Following is the XSL which i want to add into a table please help in.....
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         xmlns:fn="http://www.w3.org/2005/xpath-functions">
         <xsl:output method="html" encoding="UTF-8" />
         <xsl:template match="clinical_study">
         <xsl:variable name="status">
              <xsl:apply-templates select='overall_status' />
         </xsl:variable>
    <html>
    <head>
    <title>Summary</title>
    <link href="merckcancer.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
         <div id="trialtop" class="trialtop">
              <div id="trialtophead" class="trialtophead">
                   <H1>Summary</H1>
              </div>
    <!-- start of trial body-->
         <div id="trialmiddle" class="trialmiddle">
                             <span class="trialtitle1"><xsl:apply-templates select='brief_title'/></span>
                   <span class="tealbold">Official Title: </span><xsl:apply-templates select='official_title' />
                   <span class="tealbold" title="ClinicalTrials.gov Identifier">NCT Id: </span><xsl:apply-templates select='//nct_id'/>
    <span class="tealbold">Conditions: </span><xsl:for-each select="//condition[position()!=last()]"><xsl:value-of select="normalize-space(.)" /><xsl:text>, </xsl:text></xsl:for-each>
    <xsl:for-each select="//condition[position()=last()]"><xsl:value-of select="normalize-space(.)" /></xsl:for-each>
    <span class="tealbold">Phase: </span><xsl:apply-templates select='phase' />
    <span class="tealbold">Status: </span><xsl:value-of select="$status" />
    <span class="tealbold">Interventions: </span><xsl:for-each select="//intervention[position()!=last()]"><xsl:value-of select="normalize-space(intervention_type)" />: <xsl:value-of select="normalize-space(intervention_name)" /><xsl:text>, </xsl:text></xsl:for-each><xsl:for-each select="//intervention[position()=last()]"><xsl:value-of select="normalize-space(intervention_type)" />: <xsl:value-of select="normalize-space(intervention_name)" /></xsl:for-each>
    <xsl:apply-templates select='eligibility'><xsl:with-param name="type">short</xsl:with-param></xsl:apply-templates>
    </div><!-- end of middle -->
    </div><!-- end of top-->                         
    <div id="detail" class="detail">
         <div id="detailtophead" class="detailtophead">
              <H1>Details</H1>
         </div>
    <!-- end of detailtop-->
    <!-- start of detail body-->
    <div id="detailmiddle" class="detailmiddle">
    <span class="trialtitle2">Trial Description:</span>
         <span class="trialtitle4"><xsl:apply-templates select='brief_summary/textblock' /></span>
         <span class="trialtitle1">Eligibility: </span>
              <xsl:apply-templates select='eligibility'><xsl:with-param name="type">long</xsl:with-param></xsl:apply-templates>
    </div><!--end of detail middle-->
    </div><!-- end of detail top-->
    <div id="enroll" class="enroll">
    <div id="enrolltophead" class="enrolltophead">
    <H1>Enrollment</H1>
    </div>
    <!-- end of enroll top head-->
    <!-- start of enroll body-->
    <div id="enrollmiddle" class="enrollmiddle">
    <xsl:choose>
                                       <xsl:when test="$status = 'Recruiting'">
         This study has participating centers in a number of locations.
         To take the next step in learning more about participating in this clinical study please call one of these trial contacts.<p/>
         The trial contacts will know this study as <span class="tealbold"><xsl:apply-templates select='//org_study_id'/></span>
         or may know the study under the ClinicalTrials.gov identifier <span class="tealbold"><xsl:apply-templates select='//nct_id'/></span>.<p/>
         <p/>
                                       <xsl:apply-templates select='overall_contact'/>
                                       <xsl:for-each select="location">
                                            <xsl:call-template name='location'/><p/>
                                       </xsl:for-each>
                                       </xsl:when>
                                       <xsl:otherwise>
         This study is not currently Recruiting, it is <xsl:value-of select="$status" />.
                                       </xsl:otherwise>
                                       </xsl:choose>
    </div><!--end of enroll middle-->
    </div><!-- end of enroll -->
    <div id="credit" class="credit">
    <div id="credittophead" class="credittophead">
    <H1>Credits</H1>
    </div>
    <!-- end of credit top head-->
    <!-- start of credit body-->
    <div id="creditmiddle" class="creditmiddle">
                                  Information about this trial has been gathered from ClinicalTrials.gov. Please see
                                  <a>
                                       <xsl:attribute name="href" >
                                            /ctcpub/redirect.jsp?redirectURL=http://ClinicalTrials.gov
                                       </xsl:attribute>
                                       ClinicalTrials.gov
                                  </a> for more complete information.<p/>
                                  <xsl:apply-templates select='required_header/download_date'/><p/>
                                  <a>
                                       <xsl:attribute name="href" >
                                            /ctcpub/redirect.jsp?redirectURL=<xsl:apply-templates select='required_header/url'/>
                                       </xsl:attribute>
                                       <xsl:apply-templates select='required_header/link_text'/>
                                  </a> <p/>
                                  This trial data was last updated on <xsl:apply-templates select='//lastchanged_date'/><p/>
    </div><!--end of credit body-->
    </div><!--end of credit-->
    </body>
    </html>
    </xsl:template>
    <xsl:template match="brief_title">
              <span class="trialtitle"><xsl:value-of select="normalize-space(.)" /></span>
         </xsl:template>
         <xsl:template match="official_title">
              <span class="tealbold">Official Title: </span>     <xsl:value-of select="normalize-space(.)" />
         </xsl:template>
         <xsl:template match="phase">
              <span class="tealbold">Phase: </span> <xsl:value-of select="normalize-space(.)" />
         </xsl:template>
         <xsl:template match="overall_status">
              <xsl:value-of select="normalize-space(.)" />
         </xsl:template>
         <xsl:template match="eligibility">
              <xsl:param name="type" />
              <xsl:choose>
                   <xsl:when test="$type = 'short'">
                        <span class="tealbold">Eligibility: </span> <xsl:call-template name="ages">
                             <xsl:with-param name="min"><xsl:value-of select="normalize-space(minimum_age)" /></xsl:with-param>
                             <xsl:with-param name="max"><xsl:value-of select="normalize-space(maximum_age)" /></xsl:with-param>
                        </xsl:call-template>, <xsl:apply-templates select='gender' />
                   </xsl:when>
                   <xsl:when test="$type = 'long'">
                        <span class="trialtitle">Eligibility: </span>
                             <span class="tealbold">Age: </span> <xsl:call-template name="ages">
                                       <xsl:with-param name="min"><xsl:value-of select="normalize-space(minimum_age)" /></xsl:with-param>
                                       <xsl:with-param name="max"><xsl:value-of select="normalize-space(maximum_age)" /></xsl:with-param>
                                  </xsl:call-template>
                             <span class="tealbold">Genders Eligible for Study: </span> <xsl:apply-templates select='gender' />
                             <xsl:text>
                             </xsl:text>
                             <span class="tealbold">Eligibility Criteria: </span>
    <xsl:apply-templates select='criteria/textblock' />
                   </xsl:when>
                   <xsl:otherwise></xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <xsl:template match="gender">
              <xsl:choose>
                   <xsl:when test=". = 'Both'">Male or Female</xsl:when>
                   <xsl:otherwise>
                        <xsl:value-of select="normalize-space(.)" />
                   </xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <xsl:template match="overall_contact">
         <span class="trialtitle">Central Contact: </span>
              <xsl:apply-templates select='./first_name' /><xsl:text> </xsl:text>
              <xsl:apply-templates select='./middle_name' /><xsl:text> </xsl:text>
              <xsl:apply-templates select='./last_name' />
              <xsl:apply-templates select='./phone' />
              <xsl:apply-templates select='./email' />
         </xsl:template>
         <xsl:template name="ages">
              <xsl:param name="min" />
              <xsl:param name="max" />
              <xsl:choose>
                   <xsl:when test="($min != '') and ($max != '')">Between <xsl:value-of select="$min" /> and <xsl:value-of select="$max" /></xsl:when>
                   <xsl:when test="($min != '') and ($max = '')"><xsl:value-of select="$min" /> and Above</xsl:when>
                   <xsl:when test="($min = '') and ($max != '')">Under <xsl:value-of select="$max" /></xsl:when>
                   <xsl:otherwise></xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <xsl:template match="brief_summary/textblock">
              <span class="trialtitle">Trial Description: </span> <xsl:call-template name="substitute">
    <xsl:with-param name="string" select="." />
    </xsl:call-template>
         </xsl:template>
         <xsl:template name="location">
              <span class="trialtitle"><xsl:apply-templates select='.//country' /><xsl:apply-templates select='.//state' /></span>
              <xsl:apply-templates select='./facility/name' /><xsl:apply-templates select='.//city' /><xsl:apply-templates select='.//zip' /><xsl:apply-templates select='.//status' />
              <xsl:apply-templates select='./contact' />
         </xsl:template>
         <xsl:template match="contact">
              <span class="tealbold">Site Contact: </span>
              <xsl:apply-templates select='first_name' />
              <xsl:apply-templates select='middle_name' />
              <xsl:apply-templates select='last_name' />
              <xsl:apply-templates select='phone' />
              <xsl:apply-templates select='email' />
         </xsl:template>
         <xsl:template match="criteria/textblock">
              <xsl:call-template name="substitute">
         <xsl:with-param name="string" select="." />
         </xsl:call-template>     
    </xsl:template>     
         <xsl:template match="facility/name"><xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="country"><xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="city">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="zip">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="state">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="status">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="first_name"><xsl:value-of select="normalize-space(.)" />&#160;</xsl:template>     
         <xsl:template match="middle_name"><xsl:value-of select="normalize-space(.)" />&#160;</xsl:template>     
         <xsl:template match="last_name"><xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="phone">Phone: <xsl:value-of select="normalize-space(.)" />
    </xsl:template>     
         <xsl:template match="email"><xsl:if test='. != ""'>EMail: <xsl:value-of select="normalize-space(.)" />
    </xsl:if></xsl:template>     
    <xsl:template name="substitute">
    <xsl:param name="string" />
    <xsl:param name="from" select="'&#xA;'" />
    <xsl:param name="to">
    </xsl:param>
    <xsl:choose>
    <xsl:when test="contains($string, $from)">
    <xsl:value-of select="substring-before($string, $from)" />
    <xsl:copy-of select="$to" />
    <xsl:call-template name="substitute">
    <xsl:with-param name="string"
    select="substring-after($string, $from)" />
    <xsl:with-param name="from" select="$from" />
    <xsl:with-param name="to" select="$to" />
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$string" />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet>
    Please do as early as possible..
    thanks in advance

    Hi I tried with below querry but iam getting an error message?
    SQL> Insert into temp_clob_tab
    2 SELECT XMLELEMENT("soap:Envelope",
    3 XMLATTRIBUTES ('http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi",
    4 'http://www.w3.org/2001/XMLSchema' as "xmlns:xsd",
    5 'http://schemas.xmlsoap.org/soap/envelope/' as "xmlns:soap"),
    6 XMLELEMENT("soap:Body"),XMLELEMENT("AddListing",
    7 XMLATTRIBUTES ('http://www.christielites.com' as "xmlns" )),
    8 XMLELEMENT ( "SCOMCODE",a.SCOMCODE), XMLELEMENT ( "SLOCCODE",SLOCCODE),
    9 XMLELEMENT ( "DSTART",DSTART),XMLELEMENT ( "DEND",DEND),XMLELEMENT ( "SECODE",SECODE),
    10 XMLELEMENT ( "IAVAIL",IAVAIL),XMLELEMENT ("IOWNED",IOWNED),XMLELEMENT ("SPOSTTRANS",SPOSTTRANS))
    11 from LiteExchangeAvailablity a;
    SELECT XMLELEMENT("soap:Envelope",
    ERROR at line 2:
    ORA-00932: inconsistent datatypes: expected CLOB got -

  • Split a field  into 3 columns for a report -  Shoud be done in R/3 or BW

    Hi all,
      I have to split a Text Description (TXTMD) into 3 columns for reporting.
      This description is available in R/3 table and in BW InfoObject.
      What is the best way to accomplish this task ?
      Should I enhance the Extract structure and fill those 3 new ZZ fields on R/3?
      Should I do it on BW side ? How, please ???
      Thanks in advance.
    Regards,
    Venkat.

    If the purpose of splitting is to overcome the limitation of Infoobject, I would recommend doing that in BW side for a couple reasons: You don't need worry about having R/3 transport and also if you are working on LO extractors you don't need to worry about setup tables. Secondly, it is easy to manage the fields in BW side than R/3, because you will be sending fewer fields.
    thanks.
    Wond

Maybe you are looking for

  • No Unpaid Tax Line Items exist for the Documents

    Hi SAP Guru's I am facing a Problem while creating Challan throgh T code "j1inchln", it is not Picking up the documents posted throgh T Code "MIRO", Where are same transaction if we post throgh FB60, it is Picking up and generating Challan for the dc

  • How do I get a .pdf document from my PC onto my ipadmini?

    How do I get a .pdf document from my PC onto my ipadmini?

  • Problem in FB60 bapi

    Hi friends , i m developing a prog with bapi of FB60 it always fire the error no 014 i.e. FI/CO interface: Line item entered several times i am feeding the data which is given below in the BAPI . Please help me if anybody has worked on this BAPI w_it

  • SSIS script task failing when deployed as project in SSIS 2012

    Yes , it's the classic "my package works inside SSDT but dies when I deploy it". I  have a fairly good idea what the problem is. I have a line of code that looks in a directory. My guess is that the account that is used to run packages out of SSISDB

  • Send a break to interrupt a query?

    With SQL plus it is possible to interrupt a long running query. This is being discussed in this thread: Killing long running SQL query Is something like this possible in APEX? Rene