Vs BLOB CLOB data types

Which is the best type of data to be used to held an input stream or a byte stream, CLOB or BLOB?

Thank you.

Saber says:
Which is the best type of data to be used to held an input stream or a byte stream, CLOB or BLOB?

Thank you.

CLOB is for character data... If you want a BLOB.

http://docs.Oracle.com/CD/E11882_01/server.112/e26088/sql_elements001.htm#SQLRF50997

Tags: Database

Similar Questions

  • VLD-2550 and 2551: CLOB data type errors

    Hi all

    I tried to solve thi sproblem, but have not been able to find a solution.
    Basically I have a Col1 (of A table) of the clob data type that is to be mapped to Col2 (table B).
    But when I validate the card I get the error:

    VLD-2550: BLOB, CLOB or NBLOB of the remote source data cannot be transformations (control Details: If you have any CLOB, BLOB as a remote data source, it must be directly mapped to a target feature)
    and
    VLD-2551: BLOB LCOB or NBLOB remote data source must be set based ON a SET of generation mode.

    My card has a mapping one between the passes of the tables A and B. Col1 is directly related to Col2 (if that is what is meant by any of the transformations of type CLOb)

    Thank you very much

    Hello

    If your source table (which the CLOB) is in the remote computer then you must set the mapping mode basic SET and you need to connect directly the source column of the target column.

    If you still get this kind of validation waring and simple not then ignore them.
    This is a defect of OWB. See Bug 5989066 : card VALIDATION WITH BLOB OBJECTS JETTÉ VLD-2550 AND VLD-2551 WARNINGS, which has yet to be fixed.

    Thank you
    Fati

  • Simple question of CLOB data type

    declare
    r clob;
    begin
      r := lpad('0',32768,'0');
    end;
    

    ORA-06502: PL/SQL: digital or value error: character string buffer too small

    ORA-06512: at line 4 level

    06502 00000 - "PL/SQL: digital error or the value of %s.

    So that tells me that an in PL/SQL CLOB data type cannot be as big as a VARCHAR2, correct? A variable in a PL/SQL can be greater than this?

    Thank you!

    So that tells me that an in PL/SQL CLOB data type cannot be as big as a VARCHAR2, correct?

    NO - that tells you that LPAD works with VARCHAR2 and function is what the limit.

  • Insert/update the column with the clob data type

    Hi all

    ORCL Version: 11g.

    I have a table with the clob data type.

    Test12

    (col1 clob);

    I'm trying to insert/update to update the column with more than 4000 characters.

    But due to the limitation of tank 4000, I could not Insert/Update.

    Need your help in resolving this issue.

    THX

    Rod.

    The limit of 4000 characters is incorrect.  That pertains only to the varchar2 data type.  A clob can hold more than 4 G.

    Here is an example that shows how to insert it, I found...

    Otherwise, here is a way 'dirty' to do.

    insert into your_table (COLA, COLB)

    values

    (PRIMARY_KEY, PART 1 OF DATA)

    ;

    Update your_table

    Define COLB = COLB | PART 2 OF BIG DATA

    where COLA = PRIMARY_KEY;

    Update your_table

    Define COLB = COLB | PART 3 OF BIG DATA

    where COLA = PRIMARY_KEY;

    .. and so on...

    I don't know that I personally recommend the second style...  But he could do the job.

  • Full table scan without sweeping particular column (CLOB data type column)

    I want to select the online_bank table. This table with a column of type CLOB data. I want to select all the columns in the table, except the column type of clob data. but oracle full table, including the column analysis server type CLOB data when the query is run. It took a long time to complete the table. Please give me a solution of full table scan without analysis the CLOB data type column. How to avoid the time scanning CLOB data type column... ?

    878728 wrote:
    I want to select the online_bank table. This table with a column of type CLOB data. I want to select all the columns in the table, except the column type of clob data. but oracle full table, including the column analysis server type CLOB data when the query is run. It took a long time to complete the table. Please give me a solution of full table scan without analysis the CLOB data type column. How to avoid the time scanning CLOB data type column... ?

    We do not have your table.
    We do not have your data.
    Therefore, we have no answer to your apparent mystery.

  • Add a new node to an existing XML (CLOB) data type

    Hi guys,.

    I have a table with one of his field as a CLOB data type that stores a XML here, now I need to add an additional node to the XML.

    <?xml version="1.0" encoding="UTF-8"?><alert>
     
         <tab0 comment="section in XSL component" name="Initial Information">
              <details>     
                   <Priority>0001</Priority>
                   <DateVRUClaimInitiated>2010-06-29</DateVRUClaimInitiated>
              
              </details>
              <contacts comment="grid in XSL component">
                   many child nodes here
              </contacts>               
         </tab0>
     
         <tab1 comment="section in XSL component" name="Additional Information">
              <details comment="list collection in XSL component">
                   <Channel1>123</Channel1>
              </details>
              <IPAddresses>
                   Many child nodes here
              </IPAddresses>          
              <ANIPhones>
                   Many child nodes here
              </ANIPhones>
         </tab1>
    </alert>
    Here, in this xml file, I need to add this node < / canal2 >... so my xml should look like
    <?xml version="1.0" encoding="UTF-8"?><alert>
     
         <tab0 comment="section in XSL component" name="Initial Information">
              <details>     
                   <Priority>0001</Priority>
                   <DateVRUClaimInitiated>2010-06-29</DateVRUClaimInitiated>
              
              </details>
              <contacts comment="grid in XSL component">
                   many child nodes here
              </contacts>               
         </tab0>
     
         <tab1 comment="section in XSL component" name="Additional Information">
              <details comment="list collection in XSL component">
                   <Channel1>123</Channel1></Channel2>
              </details>
              <IPAddresses>
                   Many child nodes here
              </IPAddresses>          
              <ANIPhones>
                   Many child nodes here
              </ANIPhones>
         </tab1>
    </alert>
    I can do using an update or something?

    but it converts my CLOB to ORAXML.

    then use getclobval():

    select insertchildxml(xml, '/alert/tab1/details', 'Channel2' ,xmltype('')).getclobval() xml from t
    
  • Problem with the CLOB data type.

    Greetings,

    I am facing a problem with the CLOB data type. I know that the CLOB data type is 4 GB (I use Oracle 9i). But in the Pl Sql procedure, I can only store 34305 size for a CLOB variable character data.

    This is the test script that I am trying to run.

    DECLARE
    -Local variables here*.
    I have INTEGER;
    C_1 CLOB.
    BEGIN
    FOR Rec IN (SELECT
    *
    ACCORDING TO THE TABLE)
    LOOP
    C_1: = c_1 | Rec.Clo_1;
    END LOOP;
    EXCEPTION
    WHILE OTHERS THEN
    Dbms_Output.put_line (SQLERRM);
    END;


    Here variable C_1 range value 34305 good character regardless of type CLOB. Now the above script fails if query my buckle - huge number of return values. It is throwing the exception "error during transfer of files ORA-06502: PL/SQL: digital error or value."

    He would be grateful if someone can help me on this.

    Thank you.

    You are probably better off using DBMS_LOB.append, instead of the concatenation of varchar2 (|).

    And... take off your when-other Manager exceptions, please...

  • Problem with the length of a CLOB data type

    Hello

    In my application, I have a page with an interactive report of written blogs - on this page, you can add a new blog (text box - CLOB data type), discovered a blog or edit a blog.
    There is something going wrong with the size of the blog text. I know APEX cannot accept that 32K text and I've seen the great value saving thread, but this isn't the solution to my problem.

    The problem is that when I add a blog with say about 4000 characters, it is saved in the database, but the interactive report, when I click on the view or edit icons for this blog, the blog text field appears empty. For small items (< 4000 characters), there is no problem.
    Anyone know why this is happening and how to fix this?
    Thank you!

    There seems to be a bug in the calculation of the value of the element Source when the Source Type is a SQL query and the data type of the selected column is CLOB. I'll file a bug for this. For now, I have demonstrated how you can use a type of function PL/SQL source instead. Please see point P3_TEXT:

    beginfor c1 in (select blog_textfrom blogwhere blog_id = :P3_BLOG_ID) loop  return c1.blog_text;end loop;return null;end;
    

    Scott

  • UNION ALL in VARCHAR and CLOB data types

    Hi all

    I want to execute the below query, but the Oracle is throwing a single error.

    Select the comments as cm_comments from table1

    Union of all the

    Select text_action from table2

    Union of all the

    Select the notes to table 3

    Union of all the

    Select null from table 4

    Error I got: ORA-01790: expression must have the same type of data, matching expression

    Here, all columns have the data type of the CLOB except the 'notes' column in the table "table3." I know that this is the reason for the error, but I need a work around that. One solution I know is that cast varchar of clob type, but in this case, there is a chance to cut the data if the CLOB column contains data whose length is greater than the maximum data length for a VARCHAR column.

    Please help me in this case to find a solution to this problem.

    Your timely help is well appreciated.

    Thanks in advance.

    Try the below with TO_CLOB

    Select the comments as cm_comments from table1

    Union of all the

    Select text_action from table2

    Union of all the

    Select TO_CLOB (notes) in table3

    Union of all the

    Select null from table 4

  • How to convert clob data type varchar2.

    Hello
    If select below questioning the data type must be varchar2 but I want to convert the text to a clob.


    Select 'World' of double;


    Kind regards
    Fame
    SQL> Select 'My_name is rajuvan' Vrchr,
    2       TO_CLOB('My_name is rajuvan') clb
    3      from dual; 
    
    VRCHR                          CLB
    ------------------------------ ------------------------------
    My_name is rajuvan             My_name is rajuvan
    
    SQL>
    
  • Help needed to extract the pipe-delimited fields in a CLOB data type

    Hello

    I had a table with clob field as indicated below.
    CREATE TABLE TRANSACTION_INFO
    (
      TRASACTION_ID  CLOB,
      LOG_ID  NUMBER
    )
    
    Insert into TRANSACTION_INFO
       (TRASACTION_ID, LOG_ID)
     Values
       ('354502002020910|000000610214609663||09/27/09 08:02:37|RNEW|DC25|MOTOROLA|8802939198', 123);
    Insert into TRANSACTION_INFO
       (TRASACTION_ID, LOG_ID)
     Values
       ('354599892020910|000000610214609663||09/27/10 08:12:47|SOLD|DC23||8802939198', 456);
    COMMIT;
    As you can see the field Clob is a pipe delimited data. Now I'm able to extract the first two fields using the below querry. But it may be the right solution as
    SUBSTRING function fails if there is lack of character in all fields.
    Also when there is a null value in all the areas, how can I be able to get as a null value? Basically, I want to get the values in a defined way.

    How can we achieve this?
    Select Substr (TRASACTION_ID, 1, Instr (TRASACTION_ID, '|')-1) field1,
            Substr (TRASACTION_ID, 17, Instr (TRASACTION_ID, '|')+2) field2               
      From TRANSACTION_INFO;
      
    
    output should be like as shown
    
       FIELD1          FIELD2          FEILD3                 FEILD4
      
    354502002020910     000000610214609663                  09/27/09 08:02:37
    354599892020910     000000610214609663                  09/27/10 08:12:47
    Thank you
    Rede
    SQL> with transaction_info (trasaction_id, log_id)
         as (
     select '354502002020910|000000610214609663||09/27/09 08:02:37|RNEW|DC25|MOTOROLA|8802939198', 123 from dual union all
     select '354599892020910|||000000610214609663||09/27/10 08:12:47|SOLD|DC23||8802939198', 456 from dual union all
     select '|000000610214609663||09/27/10 08:12:47|SOLD|DC23||8802939198', 456 from dual
    )
    --
    --
    select trim(regexp_substr (trasaction_id, '[^|]+', 1, 1)) f1,
           trim(regexp_substr (trasaction_id, '[^|]+', 1, 2)) f2,
           trim(regexp_substr (trasaction_id, '[^|]+', 1, 3)) f3,
           trim(regexp_substr (trasaction_id, '[^|]+', 1, 4)) f4,
           trim(regexp_substr (trasaction_id, '[^|]+', 1, 5)) f5
      from (select regexp_replace(replace (trasaction_id, '|', '| '),'^\|', ' |') trasaction_id from transaction_info)
    /
    F1                   F2                   F3                   F4                   F5
    -------------------- -------------------- -------------------- -------------------- --------------------
    354502002020910      000000610214609663                        09/27/09 08:02:37    RNEW
    354599892020910                                                000000610214609663
                         000000610214609663                        09/27/10 08:12:47    SOLD                
    
    3 rows selected.
    
  • I have a xml stores and clob data type. I want to add a ' $', if there is any digit.

    "<? XML version = "1.0" encoding = "UTF - 8"? >

    benefits <>

    <>benefits-categories

    < code advantage-category = "generalDetails" >

    <>benefits-services

    < advantage-service id = "maximumOopMedicalDrugEhbBenefitsTotalIndividual" >

    < name of advantage-service-value = "inNetworkTier1" >

    < value > 6850 < / value >

    < / advantage-service-value >

    < name of advantage-service-value = "outOfNetwork" >

    Does not < value > < / value >

    < / advantage-service-value >

    < / service advantage >

    < advantage-service id = "maximumOopMedicalDrugEhbBenefitsTotalFamily" >

    < name of advantage-service-value = "inNetworkTier1" >

    < value > 6850 < / value >

    < / advantage-service-value >

    < name of advantage-service-value = "outOfNetwork" >

    < value > not applicable < / value >

    < / advantage-service-value >

    If you see the above xml code. You can see

    < name of advantage-service-value = "inNetworkTier1" >

    < value > 6850 < / value >

    < / advantage-service-value >

    I add $ before the digit 6850. It should be

    < name of advantage-service-value = "inNetworkTier1" >

    < value >$ 6850 < / value >

    < / advantage-service-value >

    I did the below, but does not work:

    update of the advantages of the set-Plan = to_clob (updateXML (xmltype (benefits),'/ / benefit-service-value [@name = "inNetworkTier1" ""] / value / text () ',' $' |)) extractValue (xmltype (benefits),'/ / benefit-service-value [@name = "inNetworkTier1" ""] / value/text () ')))

    where regexp_like (extractValue (xmltype (benefits),'/ / benefit-service-value [@name = "inNetworkTier1" ""] / value / text () '), ' ^ [[: digit:]]')

    Please notify

    Maybe just

    with

    data in the form of

    (select

    q' |

     

     

     

     

     

     

      6850

     

     

      Does not apply

     

     

     

     

      6850

     

     

      does not apply

     

    |' the_clob

    of the double

    )

    Select regexp_replace (the_clob,' > (\d+)<','>\1 $<') "$=""> )

    from the data

    $ added
    $6850 Not Applicable $6850 not applicable

    Concerning

    Etbin

  • Insert text into the clob data type column.

    I want to insert text below in the clob column:

    Create a text (a clob);

    insert into text values (a) (q' [])

    <? XML version = "1.0"? >

    " < xsl: stylesheet version ="1.0"xmlns: xsl = ' http://www.w3.org/1999/XSL/transform ">

    < xsl: output method = withdrawal of "text" = "yes" / >

    <! - declaration of variable for catlogid - >

    < name of xsl: variable = "vrCATALOG_ID" / >

    <! - declaration of variable for group - >

    < name of xsl: variable = "vrGROUP_TOC_ID" / >

    < name of xsl: variable = "vrGROUP_TOC_ALIAS" / >

    < name of xsl: variable = "vrGROUP_TOC_TITLE" / >

    < name of xsl: variable = "vrGROUP_TOC_TITLE_KEY" / >

    < name of xsl: variable = "vrGROUP_TOC_TITLE_TAG" / >

    < name of xsl: variable = "vrGROUP_ORDER" / >

    < name of xsl: variable = "vrGROUP_GRAPHIC_ID" / >

    < name of xsl: variable = "vrGROUP_XT_FILE_NAME" / >

    < name of xsl: variable = "vrGROUP_MAPPING_MARKET" / >

    < name of xsl: variable = "vrGROUP_MAPPING_FAMILY" / >

    < name of xsl: variable = "vrGROUP_MAPPING_LINE" / >

    < name of xsl: variable = "vrGROUP_MAPPING_BODY" / >

    < name of xsl: variable = "vrGROUP_MAPPING_SERIES" / >

    < name of xsl: variable = "vrGROUP_MAPPING_MODELYEAR" / >

    < name of xsl: variable = "vrGROUP_LINE_SHOW" / >

    < name of xsl: variable = "vrGROUP_SERIES_SHOW" / >

    < name of xsl: variable = "vrGROUP_ENGINE_SHOW" / >

    < name of xsl: variable = "vrGROUP_BODY_SHOW" / >

    < name of xsl: variable = "vrGROUP_TRANS_SHOW" / >

    < name of xsl: variable = "vrGROUP_TRIM_SHOW" / >

    < name of xsl: variable = "vrSEQ_LINE_SHOW" / >

    < name of xsl: variable = "vrSEQ_SERIES_SHOW" / >

    < name of xsl: variable = "vrSHOW_VALUE" / >

    <! - declaration of variable for logicalillustrations - >

    < name of xsl: variable = "vrLogIll_TOC_ID" / >

    < name of xsl: variable = "vrLogIll_TOC_ALIAS" / >

    < name of xsl: variable = "vrLogIll_TOC_TITLE" / >

    < name of xsl: variable = "vrLogIll_TOC_TITLE_KEY" / >

    < name of xsl: variable = "vrLogIll_TOC_TITLE_TAG" / >

    < name of xsl: variable = "vrLogIll_GRAPHIC_ID" / >

    < name of xsl: variable = "vrLogIll_XT_FILE_NAME" / >

    < name of xsl: variable = "vrLogIll_MAPPING_MARKET" / >

    < name of xsl: variable = "vrLogIll_MAPPING_FAMILY" / >

    < name of xsl: variable = "vrLogIll_MAPPING_LINE" / >

    < name of xsl: variable = "vrLogIll_MAPPING_BODY" / >

    < name of xsl: variable = "vrLogIll_MAPPING_SERIES" / >

    < name of xsl: variable = "vrLogIll_MAPPING_MODELYEAR" / >

    < name of xsl: variable = "numberLogIll" / >

    <! - declaration of variable for the illustrations - >

    < name of xsl: variable = "vrIll_TOC_ID" / >

    < name of xsl: variable = "vrIll_TOC_ALIAS" / >

    < name of xsl: variable = "vrIll_TOC_TITLE" / >

    < name of xsl: variable = "vrIll_TOC_TITLE_KEY" / >

    < name of xsl: variable = "vrIll_TOC_TITLE_TAG" / >

    < name of xsl: variable = "vrIll_TOC_SUBTITLE" / >

    < name of xsl: variable = "vrIll_GRAPHIC_ID" / >

    < name of xsl: variable = "numberIllus" / >

    < name of xsl: variable = "vrIll_ENGINE" / >

    < name of xsl: variable = "vrIll_TRANSMISSION" / >

    < name of xsl: variable = "vrIll_TRIM" / >

    < name of xsl: variable = "vrIll_MARKET" / >

    < name of xsl: variable = "vrIll_LINE" / >

    < name of xsl: variable = "vrIll_BODY" / >

    < name of xsl: variable = "vrIll_SERIES" / >

    < name of xsl: variable = "vrIll_XT_FILE_NAME" / >

    < name of xsl: variable = "vrIll_NOTE_TXT_KEY" / >

    < name of xsl: variable = "vrIll_NOTE_TXT_TAG" / >

    < name of xsl: variable = "vrIll_MAPPING_FAMILY" / >

    < name of xsl: variable = "vrIll_MAPPING_MODELYEAR" / >

    < name of xsl: variable = "vrIll_NOTE_TXT" / >

    < name of xsl: variable = "vrIll_NOTE_XT_ID" / >

    < name of xsl: variable = "vrIll_NOTE_TOC_ID" / >

    <!--> Declaration of the variable element

    < name of xsl: variable = "vrIt_ITEM_ID" / >

    < name of xsl: variable = "vrIt_SEQUENCE_NBR" / >

    < name of xsl: variable = "vrIt_ITEM_NBR" / >

    < name of xsl: variable = "vrIt_ITEM_TXT" / >

    < name of xsl: variable = "vrIt_ITEM_TXT_KEY" / >

    < name of xsl: variable = "vrIt_ITEM_TXT_TAG" / >

    < name of xsl: variable = "vrIt_NOUN_USAGE1" / >

    < name of xsl: variable = "vrIt_NOUN_USAGE1_KEY" / >

    < name of xsl: variable = "vrIt_NOUN_USAGE1_TAG" / >

    < name of xsl: variable = "vrIt_NOUNDESC_USAGE2" / >

    < name of xsl: variable = "vrIt_NOUNDESC_USAGE2_KEY" / >

    < name of xsl: variable = "vrIt_NOUNDESC_USAGE2_TAG" / >

    < name of xsl: variable = "vrIt_PHYDESC_USAGE3" / >

    < name of xsl: variable = "vrIt_PHYDESC_USAGE3_KEY" / >

    < name of xsl: variable = "vrIt_PHYDESC_USAGE3_TAG" / >

    < name of xsl: variable = "vrIt_USAGE4_KEY" / >

    < name of xsl: variable = "vrIt_USAGE4_TAG" / >

    < name of xsl: variable = "vrIt_INDENT_LEVEL" / >

    < name of xsl: variable = "vrIt_ILLUSTRATED_FLAG" / >

    < name of xsl: variable = "numberItem" / >

    < name of xsl: variable = "numberofParts" / >

    <! - declaration of variable for part - >

    < name of xsl: variable = "numberPart" / >

    < name of xsl: variable = "vrPartMarket" / >

    < xsl: template match = "CATALOG" >

    < name of xsl: variable = "vrCATALOG_ID" >

    < xsl: value-of select = "CATALOG_ID" / >

    < / xsl: variable >

    < xsl: for-each select = "GROUP" >

    < name of xsl: variable = "vrGROUP_TYPE_ID" >

    < xsl: value-of select = "GROUP_TYPE_ID" / >

    < / xsl: variable >

    < name of xsl: variable = "vrGROUP_TOC_ID" >

    < xsl: value-of select = "TOC_ID" / >

    < / xsl: variable >

    < name of xsl: variable = "vrGROUP_TOC_ALIAS" >

    < xsl: value-of select = "TOC_ALIAS" / >

    < / xsl: variable >

    < name of xsl: variable = "vrGROUP_TOC_TITLE" >

    < xsl: value-of select = "TOC_TITLE" / >

    < / xsl: variable >

    < name of xsl: variable = "vrGROUP_TOC_TITLE_KEY" >

    < xsl: value-of select = "TOC_TITLE_KEY" / >

    < / xsl: variable >

    < name of xsl: variable = "vrGROUP_TOC_TITLE_TAG" >

    < xsl: value-of select = "TOC_TITLE_TAG" / >

    < / xsl: variable >

    < name of xsl: variable = "vrGROUP_ORDER" >

    < xsl: value-of select = "GROUP_ORDER" / >

    < / xsl: variable >

    < name of xsl: variable = "vrGROUP_GRAPHIC_ID" >

    < xsl: value-of select = "CHART/GRAPHIC_ID" / >

    < / xsl: variable >

    < name of xsl: variable = "vrGROUP_XT_FILE_NAME" >

    < xsl: value-of select = "CHART/XT_FILE_NAME" / >

    < / xsl: variable >

    < name of xsl: variable = "vrGROUP_MAPPING_MARKET" >

    < xsl: for-each select = "MAPS/MARKET" >

    <!-< xsl: if test = "text (). = "" >-->

    < xsl: value - of select = "concat(MAPPINGS/MARKET,.,'^')" / >

    <!-< / xsl: if >->

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "vr_GROUP_CODE_TYPE" >

    < xsl: for-each select = "MAPPINGS" >

    < xsl: for-each select = "*" >

    < xsl: if test = "text (). = "and (name () = 'FAMILY' or name = 'ENGINE' name () = 'LINE' or name () ="MODEL_YEAR"name () = 'TRANSMISSION' or name = 'BODY' or name () = 'TRIM' or name = 'MARKET' () or name () = 'SERIES')" > "

    < xsl: value - of select = "concat (name (),' > > ',.,'^ ')" / >

    < / xsl: if >

    < / xsl: foreach >

    < xsl: text > + < / xsl: text >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "vr_GROUP_CODE" >

    < xsl: value-of select = "0" / >

    < / xsl: variable >

    < name of xsl: variable = "vrGROUP_LINE_SHOW" >

    < xsl: value-of select = "LINE_SHOW" / >

    < / xsl: variable >

    < name of xsl: variable = "vrGROUP_SERIES_SHOW" >

    < xsl: value-of select = "SERIES_SHOW" / >

    < / xsl: variable >

    < name of xsl: variable = "vrGROUP_ENGINE_SHOW" >

    < xsl: value-of select = "ENGINE_SHOW" / >

    < / xsl: variable >

    < name of xsl: variable = "vrGROUP_BODY_SHOW" >

    < xsl: value-of select = "BODY_SHOW" / >

    < / xsl: variable >

    < name of xsl: variable = "vrGROUP_TRANS_SHOW" >

    < xsl: value-of select = "TRANS_SHOW" / >

    < / xsl: variable >

    < name of xsl: variable = "vrGROUP_TRIM_SHOW" >

    < xsl: value-of select = "TRIM_SHOW" / >

    < / xsl: variable >

    < name of xsl: variable = "vrSEQ_LINE_SHOW" >

    < xsl: for-each select = "*" >

    < xsl: if test = "text () = 'Y'" >

    < xsl: if test = "name () ="LINE_SHOW"" > LINE_SHOW, < / xsl: if >

    < xsl: if test = "name () ="SERIES_SHOW"" > SERIES_SHOW, < / xsl: if >

    < xsl: if test = "name () ="ENGINE_SHOW"" > ENGINE_SHOW, < / xsl: if >

    < xsl: if test = "name () ="BODY_SHOW"" > BODY_SHOW, < / xsl: if >

    < xsl: if test = "name () ="TRANS_SHOW"" > TRANS_SHOW, < / xsl: if >

    < xsl: if test = "name () ="TRIM_SHOW"" > TRIM_SHOW, < / xsl: if >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < xsl: for-each select = "LOGICAL_ILLUSTRATION" >

    < name of xsl: variable = "numberLogIll" >

    < xsl: Number value = "position()" / >

    < / xsl: variable >

    < name of xsl: variable = "vrLogIll_TOC_ID" >

    < xsl: value-of select = "TOC_ID" / >

    < / xsl: variable >

    < name of xsl: variable = "vrLogIll_TOC_ALIAS" >

    < xsl: value-of select = "TOC_ALIAS" / >

    < / xsl: variable >

    < name of xsl: variable = "vrLogIll_TOC_TITLE" >

    < xsl: value-of select = "TOC_TITLE" / >

    < / xsl: variable >

    < name of xsl: variable = "vrLogIll_TOC_TITLE_KEY" >

    < xsl: value-of select = "TOC_TITLE_KEY" / >

    < / xsl: variable >

    < name of xsl: variable = "vrLogIll_TOC_TITLE_TAG" >

    < xsl: value-of select = "TOC_TITLE_TAG" / >

    < / xsl: variable >

    < name of xsl: variable = "vrLogIll_GRAPHIC_ID" >

    < xsl: value-of select = "CHART/GRAPHIC_ID" / >

    < / xsl: variable >

    < name of xsl: variable = "vrLogIll_XT_FILE_NAME" >

    < xsl: value-of select = "CHART/XT_FILE_NAME" / >

    < / xsl: variable >

    < name of xsl: variable = "vrLogIll_MAPPING_MARKET" >

    < xsl: for-each select = "MAPS/MARKET" >

    <!-< xsl: if test = "text (). = "" >-->

    < xsl: value - of select = "concat(MAPPINGS/MARKET,.,'^')" / >

    <!-< / xsl: if >->

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "vr_LICODE_TYPE" >

    < xsl: for-each select = "MAPPINGS" >

    < xsl: for-each select = "*" >

    < xsl: if test = "text (). = "and (name () = 'FAMILY' or name = 'ENGINE' name () = 'LINE' or name () ="MODEL_YEAR"name () = 'TRANSMISSION' or name = 'BODY' or name () = 'TRIM' or name = 'MARKET' () or name () = 'SERIES')" > "

    < xsl: value - of select = "concat (name (),' > > ',.,'^ ')" / >

    < / xsl: if >

    < / xsl: foreach >

    < xsl: text > + < / xsl: text >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "vr_LICODE" >

    < xsl: value-of select = "0" / >

    < / xsl: variable >

    < xsl: for-each select = "IMAGE" >

    < name of xsl: variable = "numberIllus" >

    < xsl: Number value = "position()" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIll_TOC_ID" >

    < xsl: value-of select = "TOC_ID" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIll_TOC_ALIAS" >

    < xsl: value-of select = "TOC_ALIAS" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIll_TOC_TITLE" >

    < xsl: value-of select = "TOC_TITLE" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIll_TOC_TITLE_KEY" >

    < xsl: value-of select = "TOC_TITLE_KEY" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIll_TOC_TITLE_TAG" >

    < xsl: value-of select = "TOC_TITLE_TAG" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIll_TOC_SUBTITLE" >

    < xsl: value-of select = "TOC_SUBTITLE" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIll_GRAPHIC_ID" >

    < xsl: value-of select = "CHART/GRAPHIC_ID" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIll_MARKET" >

    < xsl: for-each select = "MAPS/MARKET" >

    <!-< xsl: if test = "text (). = "" >-->

    < xsl: value - of select = "concat(MAPPINGS/MARKET,.,'^')" / >

    <!-< / xsl: if >->

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "vr_ICODE_TYPE" >

    < xsl: for-each select = "MAPPINGS" >

    < xsl: for-each select = "*" >

    < xsl: if test = "text (). = "and (name () = 'FAMILY' or name = 'ENGINE' name () = 'LINE' or name () ="MODEL_YEAR"name () = 'TRANSMISSION' or name = 'BODY' or name () = 'TRIM' or name = 'MARKET' () or name () = 'SERIES')" > "

    < xsl: value - of select = "concat (name (),' > > ',.,'^ ')" / >

    < / xsl: if >

    < / xsl: foreach >

    < xsl: text > + < / xsl: text >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "vr_ICODE" >

    < xsl: value-of select = "0" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIll_XT_FILE_NAME" >

    < xsl: value-of select = "CHART/XT_FILE_NAME" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIll_NOTE_TXT" >

    < xsl: value-of select = "NOTES/NOTE_TXT" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIll_NOTE_XT_ID" >

    < xsl: value-of select = "NOTES/XT_ID" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIll_NOTE_TOC_ID" >

    < xsl: value-of select = "NOTES/TOC_NOTE_ID" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIll_NOTE_TXT_KEY" >

    < xsl: value-of select = "NOTES/NOTE_TXT_KEY" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIll_NOTE_TXT_TAG" >

    < xsl: value-of select = "NOTES/NOTE_TXT_TAG" / >

    < / xsl: variable >

    < xsl: for-each select = "ITEM" >

    < name of xsl: variable = "numberItem" >

    < xsl: Number value = "position()" / >

    < / xsl: variable >

    < name of xsl: variable = "numberofParts" >

    < xsl: value - of select = "count (descendant::PART)" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_ITEM_ID" >

    < xsl: value-of select = "ITEM_ID" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_SEQUENCE_NBR" >

    < xsl: value-of select = "SEQUENCE_NBR" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_ITEM_NBR" >

    < xsl: value-of select = "ITEM_NBR" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_ITEM_TXT_KEY" >

    < xsl: value-of select = "ITEM_TXT_KEY" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_ITEM_TXT_TAG" >

    < xsl: value-of select = "ITEM_TXT_TAG" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_ITEM_TXT" >

    < xsl: value-of select = "ITEM_TXT" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_NOUN_USAGE1" >

    < xsl: value-of select = "NOUN_USAGE1" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_NOUN_USAGE1_KEY" >

    < xsl: value-of select = "NOUN_USAGE1_KEY" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_NOUN_USAGE1_TAG" >

    < xsl: value-of select = "NOUN_USAGE1_TAG" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_NOUNDESC_USAGE2" >

    < xsl: value-of select = "NOUNDESC_USAGE2" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_NOUNDESC_USAGE2_KEY" >

    < xsl: value-of select = "NOUNDESC_USAGE2_KEY" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_NOUNDESC_USAGE2_TAG" >

    < xsl: value-of select = "NOUNDESC_USAGE2_TAG" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_PHYDESC_USAGE3" >

    < xsl: value-of select = "PHYDESC_USAGE3" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_PHYDESC_USAGE3_KEY" >

    < xsl: value-of select = "PHYDESC_USAGE3_KEY" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_PHYDESC_USAGE3_TAG" >

    < xsl: value-of select = "PHYDESC_USAGE3_TAG" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_USAGE4_KEY" >

    < xsl: value-of select = "USAGE4_KEY" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_USAGE4_TAG" >

    < xsl: value-of select = "USAGE4_TAG" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_INDENT_LEVEL" >

    < xsl: value-of select = "INDENT_LEVEL" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_ILLUSTRATED_FLAG" >

    < xsl: value-of select = "ILLUSTRATED_FLAG" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_REQUIRED_FLAG" >

    < xsl: value-of select = "ITEM_APPLICATION/REQUIRED_FLAG" / >

    < / xsl: variable >

    < name of xsl: variable = "vrIt_SERVICEABLE_FLAG" >

    < xsl: value-of select = "ITEM_APPLICATION/SERVICEABLE_FLAG" / >

    < / xsl: variable >

    < xsl: for-each select = "PARTY" >

    < name of xsl: variable = "numberPart" >

    < xsl: Number value = "position()" / >

    < / xsl: variable >

    < name of xsl: variable = "vrPartChild" >

    < xsl: value - of select = "count (*)" / >

    < / xsl: variable >

    < name of xsl: variable = "vrPartU1" >

    < xsl: value-of select = "NOUN_USAGE1" / >

    < / xsl: variable >

    < name of xsl: variable = "vrPartU2" >

    < xsl: value-of select = "NOUNDESC_USAGE2" / >

    < / xsl: variable >

    < name of xsl: variable = "vrPartU3" >

    < xsl: value-of select = "PHYDESC_USAGE3" / >

    < / xsl: variable >

    < name of xsl: variable = "vrPartTxt" >

    < xsl: value-of select = "ITEM_TXT" / >

    < / xsl: variable >

    < name of xsl: variable = "vrPartMarket" >

    < xsl: for-each select = "ON" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat(MARKET,.,'^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "vr_PMARKET" >

    < xsl: for-each select = "ON" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat('M','^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "vrPartEngine" >

    < xsl: for-each select = "ENGINE" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat(ENGINE,.,'^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "var_PENGINE" >

    < xsl: for-each select = "ENGINE" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat('E','^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "vrPartBody" >

    < xsl: for-each select = "BODY" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat(BODY,.,'^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "var_PBODY" >

    < xsl: for-each select = "BODY" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat('B','^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "vrPartLine" >

    < xsl: for-each select = "LINE" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat(LINE,.,'^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "var_PLINE" >

    < xsl: for-each select = "LINE" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat('L','^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "vrPartTrim" >

    < xsl: for-each select = "TRIM" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat(TRIM,.,'^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "var_PTRIM" >

    < xsl: for-each select = "TRIM" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat('R','^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "vrPartTrimColor" >

    < xsl: for-each select = "TRIM_COLOR" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat(TRIM_COLOR,.,'^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "var_PTRIMCOLOR" >

    < xsl: for-each select = "TRIM_COLOR" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat('C','^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "vrPartTrimExt" >

    < xsl: for-each select = "TRIM_EXTERIOR" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat(TRIM_EXTERIOR,.,'^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "var_PTRIMEXT" >

    < xsl: for-each select = "TRIM_EXTERIOR" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat('X','^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "vrPartSeries" >

    < xsl: for-each select = "SERIES" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat(SERIES,.,'^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "var_PSERIES" >

    < xsl: for-each select = "SERIES" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat('Z','^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "vrPartTrans" >

    < xsl: for-each select = "TRANS" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat(TRANS,.,'^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "var_PTRANS" >

    < xsl: for-each select = "TRANS" >

    < xsl: if test = "text (). = "" >

    < xsl: value - of select = "concat('T','^')" / >

    < / xsl: if >

    < / xsl: foreach >

    < / xsl: variable >

    < name of xsl: variable = "vrPartFamily" >

    < xsl: value - of select = "concat(/CATALOG/APPLICATIONS/FAMILY,'^')" / >

    < / xsl: variable >

    < name of xsl: variable = "var_PFAMILY" >

    < xsl: value - of select = "concat('F','^')" / >

    < / xsl: variable >

    < name of xsl: variable = "vrPartModelYear" >

    < xsl: value - of select = "concat(/CATALOG/APPLICATIONS/MODEL_YEAR,'^')" / >

    < / xsl: variable >

    < name of xsl: variable = "var_PYEAR" >

    < xsl: value - of select = "concat('Y','^')" / >

    < / xsl: variable >

    < name of xsl: variable = "vr_PCODE_TYPE" >

    < xsl: value - of select = "concat($var_PBODY,$var_PTRIMCOLOR,$var_PENGINE,$var_PFAMILY,$var_PLINE,$vr_PMARKET,$var_PTRIM,$var_PTRANS,$var_PTRIMEXT,$var_PYEAR,$var_PSERIES)" / >

    < / xsl: variable >

    < name of xsl: variable = "vr_PCODE" >

    < xsl: value - of select = "concat ($vrPartBody, $vrPartTrimColor, $vrPartEngine, $vrPartFamily, $vrPartLine, $vrPartMarket, $vrPartTrim, $vrPartTrans, $vrPartTrimExt, $vrPartModelYear, $vrPartSeries)" / >

    < / xsl: variable >

    < name of xsl: variable = "varITEM_SALES_CODES" >

    < xsl: value-of select = "ITEM_SALES_CODES" / >

    < / xsl: variable >

    < xsl: value-of select = "$vrCATALOG_ID" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "/ CATALOGUE/APPLICATIONS/MODEL_YEAR" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "/ CATALOGUE/APPLICATIONS/FAMILY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrGROUP_TOC_ID" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrGROUP_TOC_ALIAS" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrGROUP_TOC_TITLE_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrGROUP_TOC_TITLE_TAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrGROUP_ORDER" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrLogIll_TOC_ID" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrLogIll_TOC_ALIAS" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrLogIll_TOC_TITLE" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrLogIll_TOC_TITLE_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrLogIll_TOC_TITLE_TAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIll_TOC_ID" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIll_TOC_ALIAS" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIll_TOC_TITLE" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIll_TOC_TITLE_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIll_TOC_TITLE_TAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIll_TOC_SUBTITLE" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIll_NOTE_TXT_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIll_NOTE_TXT_TAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIll_GRAPHIC_ID" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIll_XT_FILE_NAME" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_ITEM_ID" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_ITEM_NBR" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_ITEM_TXT_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_ITEM_TXT_TAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_ITEM_TXT" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_NOUN_USAGE1" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_NOUN_USAGE1_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_NOUN_USAGE1_TAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_NOUNDESC_USAGE2" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_NOUNDESC_USAGE2_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_NOUNDESC_USAGE2_TAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_PHYDESC_USAGE3" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_PHYDESC_USAGE3_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_PHYDESC_USAGE3_TAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_USAGE4_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_USAGE4_TAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_INDENT_LEVEL" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_ILLUSTRATED_FLAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "ITEM_ID" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "PART_NBR" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "PART_NBR_FORMAT" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "QUANTITY" / >

    < xsl: text > | < / xsl: text >

    < xsl: choose >

    < template test = "$numberofParts = 1 and $vrPartU1 =" and $vrPartU2 = "and $vrPartU3 =" and $vrPartTxt = "and $vrPartChild! = 0 ">

    < xsl: value-of select = "$vrIt_NOUN_USAGE1" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_NOUNDESC_USAGE2" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_PHYDESC_USAGE3" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_ITEM_TXT" / >

    < / xsl: When >

    < xsl: otherwise >

    < xsl: value-of select = "$vrPartU1" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrPartU2" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrPartU3" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrPartTxt" / >

    < / xsl: otherwise >

    < / xsl: choose >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "USAGE_SOURCE" / >

    < xsl: text > | < / xsl: text >

    < xsl: choose >

    < template test = "$varITEM_SALES_CODES =" ">."

    < xsl: text > ST < / xsl: text >

    < / xsl: When >

    < xsl: otherwise >

    < xsl: value-of select = "$varITEM_SALES_CODES" / >

    < / xsl: otherwise >

    < / xsl: choose >

    < xsl: text > | < / xsl: text >

    < xsl: choose >

    < template test = "$numberofParts = 1 and $vrPartU1 =" and $vrPartU2 = "and $vrPartU3 =" and $vrPartTxt = "and $vrPartChild! = 0 ">

    < xsl: value-of select = "$vrIt_NOUN_USAGE1_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_NOUN_USAGE1_TAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_NOUNDESC_USAGE2_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_NOUNDESC_USAGE2_TAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_PHYDESC_USAGE3_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_PHYDESC_USAGE3_TAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_ITEM_TXT_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_ITEM_TXT_TAG" / >

    < / xsl: When >

    < xsl: otherwise >

    < xsl: value-of select = "NOUN_USAGE1_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "NOUN_USAGE1_TAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "NOUNDESC_USAGE2_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "NOUNDESC_USAGE2_TAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "PHYDESC_USAGE3_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "PHYDESC_USAGE3_TAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "ITEM_TXT_KEY" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "ITEM_TXT_TAG" / >

    < / xsl: otherwise >

    < / xsl: choose >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "SEQUENCE_NBR" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrGROUP_TOC_TITLE" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_SEQUENCE_NBR" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrGROUP_GRAPHIC_ID" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrGROUP_XT_FILE_NAME" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrLogIll_GRAPHIC_ID" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrLogIll_XT_FILE_NAME" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$numberIllus" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$numberItem" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$numberPart" / >

    < xsl: text > | < / xsl: text >

    < xsl: choose >

    < template test = "$vrPartChild = 0" > ".

    < xsl: value-of select = "$vrPartChild" / >

    < / xsl: When >

    < xsl: otherwise >

    < xsl: value-of select = "$numberofParts" / >

    < / xsl: otherwise >

    < / xsl: choose >

    < xsl: text > | < / xsl: text >

    < xsl: choose >

    < template test = "substring($vrGROUP_MAPPING_MARKET,1,1) ='^ '" > ".

    < xsl: text > < / xsl: text >

    < / xsl: When >

    < template test = "contains($vrGROUP_MAPPING_MARKET,'^^')" >

    < xsl: text > < / xsl: text >

    < / xsl: When >

    < xsl: otherwise >

    < xsl: value-of select = "$vrGROUP_MAPPING_MARKET" / >

    < / xsl: otherwise >

    < / xsl: choose >

    <!-< xsl: value-of select = "$vrGROUP_MAPPING_MARKET" / >-->

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vr_GROUP_CODE_TYPE" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vr_GROUP_CODE" / >

    < xsl: text > | < / xsl: text >

    < xsl: choose >

    < template test = "substring($vrIll_MARKET,1,1) ='^ '" > ".

    < xsl: text > < / xsl: text >

    < / xsl: When >

    < template test = "contains($vrIll_MARKET,'^^')" >

    < xsl: text > < / xsl: text >

    < / xsl: When >

    < xsl: otherwise >

    < xsl: value-of select = "$vrIll_MARKET" / >

    < / xsl: otherwise >

    < / xsl: choose >

    <!-< xsl: value-of select = "$vrIll_MARKET" / >-->

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vr_ICODE_TYPE" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vr_ICODE" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$numberLogIll" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrPartMarket" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vr_PCODE_TYPE" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vr_PCODE" / >

    < xsl: text > | < / xsl: text >

    < xsl: value - of select = "substring($vrIll_NOTE_TXT,1,3999)" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIll_NOTE_XT_ID" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIll_NOTE_TOC_ID" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrGROUP_LINE_SHOW" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrGROUP_SERIES_SHOW" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrGROUP_ENGINE_SHOW" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrGROUP_BODY_SHOW" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrGROUP_TRANS_SHOW" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrGROUP_TRIM_SHOW" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrSEQ_LINE_SHOW" / >

    < xsl: text > | < / xsl: text >

    <!-< xsl: value-of select = "$vrLogIll_MAPPING_MARKET" / >-->

    < xsl: choose >

    < template test = "substring($vrLogIll_MAPPING_MARKET,1,1) ='^ '" > ".

    < xsl: text > < / xsl: text >

    < / xsl: When >

    < template test = "contains($vrLogIll_MAPPING_MARKET,'^^')" >

    < xsl: text > < / xsl: text >

    < / xsl: When >

    < xsl: otherwise >

    < xsl: value-of select = "$vrLogIll_MAPPING_MARKET" / >

    < / xsl: otherwise >

    < / xsl: choose >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vr_LICODE_TYPE" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vr_LICODE" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_SERVICEABLE_FLAG" / >

    < xsl: text > | < / xsl: text >

    < xsl: value-of select = "$vrIt_REQUIRED_FLAG" / >

    < xsl: text > # < / xsl: text >

    < / xsl: foreach >

    < / xsl: foreach >

    < / xsl: foreach >

    < / xsl: foreach >

    < / xsl: foreach >

    < / xsl: template >

    [< / xsl: stylesheet >]';

    I am getting error below.

    [Error] Execution (2: 1): ORA-01704: string literal too long.

    Please help me on this

    You cannot insert more than 4000 characters. Use Pl/SQL as below

    DECLARE

    Str VARCHAR2 (32767).

    BEGIN

    Str: =.

    q']

    http://www.w3.org/1999/XSL/transform">

       

     

     

     

     

     

     

     

     

    ++

     

     

     

     

     

     

          

    LINE_SHOW,

    SERIES_SHOW,

    ENGINE_SHOW,

    BODY_SHOW,

    TRANS_SHOW,

    TRIM_SHOW,

                  

      

     

     

    ++

      

                  

       

           

     

    ++

                  

                  

                          

                  

                   

                   

                   

                   

                   

     

     

          

     

          

          

          

          

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    ST

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    |

    #####

    ]';

    INSERT IN the text (A)

    VALUES (str);

    END;

  • write a CLOB data type to a file.

    Hi all

    I use Oracle 10 g

    I want to write a CLOB in an external file on the DB server. I used the below:



    F: = UTL_FILE. FOPEN (FILE_NAME, 'FILE_DIR', 'W');
    TXT_LINE: = TAB_DDL; - TAB_DDL I get it from get_DLL (table, 'table_name') select of the double;
    UTL_FILE. PUT_LINE (F, TXT_LINE);
    UTL_FILE. NEW_LINE (F, 1);

    The prob that the foregoing is a failure when TAB_DDL return a big DOF.

    Any suggestions?


    Kind regards

    http://saubbane.blogspot.com/2011/03/generating-scripts-using-dbmsmetadata.html

  • While the BLOB conversion of type CLOB error - ORA-06502: PL/SQL: digital error or value

    Passing data from attachment of DB (Blob data Type) after the CLOB data type conversion, giving the error "ORA-06502: PL/SQL: digital error or value" in the PL/SQL package. If the BLOB size 32K > it will give another error works great my procedure.

    For example, I enclose my code here.

    function get_base64 (p_blob_in in blob) return clob is

    CLOB v_clob;

    CLOB v_result;

    whole v_offset;

    v_chunk_size PLS_INTEGER: = 12288;

    v_buffer_varchar varchar2 (32767).

    v_buffer_raw raw (32767).

    Start

    fnd_file.put_line (fnd_file.log, 'here');

    If p_blob_in is null then

    Returns a null value.

    end if;

    DBMS_LOB.CREATETEMPORARY (v_clob, true);

    fnd_file.put_line (fnd_file.log, 'here1');

    v_offset: = 1;

    fnd_file.put_line (fnd_file.log, 'Loop value'-| ceil (DBMS_LOB.) GetLength (p_blob_in) / v_chunk_size));

    because me in 1... ceil (DBMS_LOB. GetLength (p_blob_in) / v_chunk_size) loop

    DBMS_LOB. Read (p_blob_in, v_chunk_size, v_offset, v_buffer_raw);

    v_buffer_raw: = utl_encode.base64_encode (v_buffer_raw);

    v_buffer_varchar: = utl_raw.cast_to_varchar2 (v_buffer_raw);

    DBMS_LOB. WriteAppend (v_clob, length (v_buffer_varchar), v_buffer_varchar);

    v_offset: = v_offset + v_chunk_size;

    end loop;

    fnd_file.put_line (fnd_file.log, 'Out of the loop');

    v_result: = v_clob;

    fnd_file.put_line (fnd_file.log, 'V_result length' - |) DBMS_LOB. GetLength (v_result));

    fnd_file.put_line (fnd_file.log, 'V_result' - | v_result);

    DBMS_LOB.freeTemporary (v_clob);

    Return v_result;

    exception

    while others then

    fnd_file.put_line (fnd_file.log, 'Error based on the encode_base64' - |) SQLERRM);

    Returns a null value.

    end;

    In my main program I call this function as below:

    Main proceedings...

    l_return_clob CLOB.

    Begin

    ....

    l_return_clob: = get_base64 (p_blob_in);

    -In returning it gives error - ORA-06502: PL/SQL: digital error or value

    end;

    Then, please mark the thread ANSWERED.

Maybe you are looking for