doc XML format based on the values in a different xml doc

Version of database: Oracle 10 g

I have a file of XML "data" and an associated error file which is also XML. I want to take the data XML file and highlight visually in an html file only tag fields and content that are there in the file 'error.


There are many fields in the data file, so the error could be just about anywhere. Can someone please tell me what I should read or give me advice on how should I proceed?

I built a style sheet for the file "data" - but of course it's static. I need 2 style sheets and apply both somehow? I also thought that I use the "error" xml doc and simply rewrite the nodes of the error in the "data" file and then use the stylesheet to annotate the data file based on what I'm rewriting.
for example
If the data are
< Field1 > content field 1 < / field1 >

and the error file Field1 in there, I would like to rewrite the data file to have say < error > content field 1 < / error > and just mark the <>error using the style sheet. Is this a reasonable solution? Even then I need help on the actual xml/sql functions, I need to rewrite the xml data.


I am a beginner in this rank and I apologize - what seems such a newbie question that must have been asked before - I wish just that I could find it in the forum.


Thank you!

Published by: user13112667 on October 15, 2010 12:38

A small improvement on the method of the XSLT.

For faster access, we can define a key on the couple ": segment element" of the list of errors, for example:





 
  
   
   
   
err

Tags: Oracle Development

Similar Questions

  • The line formatting based on the value of a column

    Hi friends

    I'm trying to format the entire row based on the value of the first column in my answers.

    Example, if the first value of column 'F' now, I want the row to be colorful

    I can do a conditional formatting on a column, but I want to do down the line

    F 8.1% 12.0%
    ------------------------------------------
    E 5.2% 3.5%
    ------------------------------------------
    M 2.3% 3.3%
    ------------------------------------------


    If one has done this or suggestions please answer

    Thank you
    Sang A

    Well, the conditional formatting can be done in PivotTables until the next version, 11g. In the meantime, you two options:

    (1) http://gerardnico.com/weblog/2009/04/06/obiee-cross-conditional-formatting-on-a-pivot/

    (2) http://oraclebizint.wordpress.com/2008/04/29/oracle-bi-ee-101332-conditional-formatting-based-on-multiple-character-columns-in-a-pivot-table/

    (3) you can use your custom column filter functionality to get your ' sales in year 20xx "and a presentation to make this dynamic variable. So you can declare an array and use the method I described above.

    filters on columns

    Good luck.

  • How do I format based on the value of the @status attribute?

    Example: I use the @status attribute to indicate that a step in a procedure is new or a paragraph in a new concept.

    For review purposes, I want to format new text in Green - Green preference the highlight, but the green text will do.

    Example: I use the @status attribute to indicate that a step in a procedure has been deleted or that a paragraph in a concept has been removed.

    For review purposes, I want to format new text as a bar.

    Is this possible? If Yes, where can I configure the formatting in attribute values?

    Thanks in advance.

    Marsha

    Hi Marsha,

    If you want the formatting to be "locked in", which is led by ESD, then advice from Lynne is the way to go. If instead, there would be enough temporarily color the items you want as a substitute format, you can use the AXCM plugin:

    http://www.weststreetconsulting.com/WSC_AXCM.htm

    This plugin can do any character coloring, bar, etc., based on attribute values and other markup. Colouring is applied as an alternative format and removed easily by a refresh of the ESD. The characteristics of color were mainly intended for purposes of conditional text, but it would work in this case too.

    AXCM is totally free. Warning... I am owner of West Street Consulting and this plugin.

    Russ

  • Calculate the difference based on the values of 2 different columns

    Hello friends,

    I basically want to do something like below that is the Format t - SQL:
    SUM (CASE column WHERE 'ABC' THEN 1 ELSE 0 END)-SUM (CASE columnB WHERE 'XYZ' THEN 1 ELSE 0 END)

    For which I was changing the following code in Oracle:
    SUM (CASE column = 'ABC' THEN 1 ELSE 0 END)-SUM (CASE columnB = END ELSE 0 'XYZ', 1).

    But his failure to validation with an error message - missing right parenthesis...

    Rest of the qry is very good, and each time I have add this line it starts failing.

    Published by: Sweta on 11-Sep-2009 09:32

    Try this

    SUM (CASE
                     WHEN columna = 'ABC'
                        THEN 1
                     ELSE 0
                  END)
           - SUM (CASE
                     WHEN columnb = 'XYZ'
                        THEN 1
                     ELSE 0
                  END)
    

    or

    COUNT (CASE
                       WHEN columna = 'ABC'
                          THEN 1
                    END)
           - COUNT (CASE
                       WHEN columnb = 'XYZ'
                          THEN 1
                    END)
    

    Note: you can use this sythax in oracle

    SUM(CASE columnA WHEN 'ABC' THEN 1 ELSE 0 END) - SUM(CASE columnB WHEN 'XYZ' THEN 1 ELSE 0 END)
    

    Example of

    SELECT emp_test.*,CASE ename
              WHEN 'SCOTT'
                 THEN 1
           END ind
      FROM emp_test
    
         EMPNO ENAME      JOB              MGR HIREDATE          SAL       COMM     DEPTNO        IND
    ---------- ---------- --------- ---------- ---------- ---------- ---------- ---------- ----------
          7369 SMITH      CLERK           7902 1980-12-17        800                    20
          7499 ALLEN      SALESMAN        7698 1981-02-20       1600        300         30
          7521 WARD       SALESMAN        7698 1981-02-22       1250        500         30
          7566 JONES      MANAGER         7839 1981-04-02       2975                    20
          7654 MARTIN     SALESMAN        7698 1981-09-28       1250       1400         30
          7698 BLAKE      MANAGER         7839 1981-05-01       2850                    30
          7782 CLARK      MANAGER         7839 1981-06-09       2450                    10
          7788 SCOTT      ANALYST         7566 1987-04-19       3000                    20          1
          7839 KING       PRESIDENT            1981-11-17       5000          0         10
          7844 TURNER     SALESMAN        7698 1981-09-08       1500                    30
          7876 ADAMS      CLERK           7788 1987-05-23       1100                    20
          7900 JAMES      CLERK           7698 1981-12-03        950                    30
          7902 FORD       ANALYST         7566 1981-12-03       3000                    20
          7934 MILLER     CLERK           7782 1982-01-23       1300                    10           
    
    14 rows selected.
    
  • Is there an easy way to filter a 2D table based on the values in two fields?

    Y at - it an easy way to filter a 2D table based on the values of one of the fields. In my attached VI the output array has the following format:

    Ident Frame Type bytes TimeStamp data

    10:57:07.621 3AD00016 POUVEZ 8 0000000000000000 data frame

    10:57:07.622 3AD00017 CAN data frame 8 000005E000000000

    10:57:07.624 3AD00018 POUVEZ 8 0000000003300000 data frame

    10:57:07.625 2DC00000 POUVEZ 8 0000000000000000 data frame

    10:57:07.626 3AD00019 POUVEZ 4 0000030000000000 data frame

    I would like to delete all lines that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the data above the fourth row would be removed. The only way I can see to do this is to form a 1 d table. Is there a better approach?

    Thank you.

    Hi chuck72352,

    After you've sorted your data, you can use the function InRange. Combined with a "search in 1 table D", you get the range you really want.

    Mike

  • change the color of line based on the value of column 5 Apex in the classic report

    Version of the apex 5.0.0.00.31

    Standard universal theme

    Page theme default template

    Classic report

    Foldable report template

    Hello

    I know this question has been asked several times here, but I'm working on 5 Apex and need to know the correct way to do it in this version.

    I need to change the color of the text of the entire line (no background color) based on the value in one of the columns of the classic report. I have just two conditions, if the value of column = Yes, color should be red, otherwise it must be green.

    I am new to jscript and css, so appreciate if someone can tell me the solution with steps.

    I have already checked this link that changes the value of the column, need to do something similar to the whole line.

    https://tylermuth.WordPress.com/2007/12/01/conditional-column-formatting-in-apex/

    Hi coolmaddy007-Oracle,.

    Here's an example set up on the apex.oracle.com according to the specifications you gave: https://apex.oracle.com/pls/apex/f?p=35467:1

    Version of the apex 5.0.0.00.31

    Standard universal theme

    Page theme default template

    Classic report

    Foldable report template

    Here is how it is done:

    Create a dynamic action with the following specifications:

    Name: Give the appropriate name

    Event: After refresh

    Selection type: region

    Region: select your region classic report

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $('td[headers="JOB"]').each(function() {
      if ( $(this).text() === 'MANAGER' ) {
        $(this).closest('tr').find('td').css({"color":"red"});
      }
      if ( $(this).text() === 'SALESMAN' ) {
        $(this).closest('tr').find('td').css({"color":"green"});
      }
      if ( $(this).text() === 'CLERK' ) {
        $(this).closest('tr').find('td').css({"color":"blue"});
      }
    });
    

    NOTE: Download the selector appropriate for your knowledge $('td[headers="JOB"]') case using firebug/browser development tools.

    Items concerned: leave blank.

    PS: Changed the example to change the color of text instead of the background color.

    I hope this helps!

    Kind regards

    Kiran

  • IR report visible cell based on the value of the hidden highlight column

    I have an IR with a date in the format DD-MON-AA column.  I have an obligation to change the background color of the date cell according to the day of the week (2 yellow =, 3 = purple, etc.), where Monday is day 2, Tuesday is the day 3, etc.

    My idea on how to proceed was to create a hidden like this to_char (date_col, 'r') column, but I can not set the background color of the date column based on the value of another column (the column hidden in this case). 

    Any ideas on how I can do this?  Can I use the Expression of implementation form/HTML column on the column date to set the background color; If so, can you give an example?

    Thank you.

    Use column formatting

    #COLTOHIGHLIGHT #.

    Add css to the page

  • ADF Table cell color based on the value of this field

    Dear all,
    I want to create a table for our new application that contains a table that is used to represent the data in a table or matrix format.
    and each cell of the table should be filled with a color of three colors, based on the value belongs to who will for example: (1-8-> green, 9-20 - yellow etc.).
    I don't know how to implement this. Help, please...

    Rognard

    Please post in the subforum that is appropriate for your question.

    http://forums.Oracle.com/forums/Ann.jspa?annID=599

    This blocking thread

  • Web page open based on the value of the text field

    I want to open a web page that is based on the value of a text field.  How to bind the value of a text field to a command which will open the web page?

    For example, the value of the text field is: 8 t - EXT

    and the web page I want to open when you press a button is: http://hqms/doc.asp?dn=8T-EXT

    As you can see that the 8 t - EXT is something that a person enters the form and is what is needed to open the web page.  The other text in the link of the webpage is always the same.

    Thank you

    Hello

    In the click event of the button, place the following JavaScript code:

    if (TextField1.rawValue !== null) {
         var vURL = "http://hqms/doc.asp?dn=" + TextField1.rawValue;
         app.launchURL(vURL, true);
    }
    else {
         app.alert("Dear user, please put a code in the text field. Thank you!");
    }
    

    You need to change the object references based on your shape.

    Niall

  • How ItemRenderer change for DataGrid column based on the value of this column?

    Hello! I am trying to create a DataGrid that has a component Button to register when the value of this column is 'Open', then a label saying full when the value of this column is "Full". But Im having a hell of a time he find.

    Here's my MXML with 2 different inline installation of components for different rendering engines point 2:

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" >

    < mx:Component id = "RegFull" >
    < mx:VBox horizontalAlign = "center" verticalAlign = "middle" >
    < mx:Label id = 'Full text' text = "Full" / >
    < / mx:VBox >
    < / mx:Component >

    < mx:Component id = "RegButton" >
    < mx:VBox horizontalAlign = "center" verticalAlign = "middle" >
    < mx:Button label = "Save" / >
    < / mx:VBox >
    < / mx:Component >

    < mx:DataGrid id = "scGrid" width = "100%" height = "100%" number of lines = "4" >

    < mx:dataProvider >
    < mx:Object label = "Status" data = 'Open' / >
    < mx:Object label = "Status" data = "Full" / >
    < mx:Object label = "Status" data = 'Open' / >
    < mx:Object label = "Status" data = "Full" / >
    < mx:Object label = "Status" data = 'Open' / >
    < mx:Object label = "Status" data = "Full" / >
    < / mx:dataProvider >

    < mx:columns >
    < mx:DataGridColumn id = "RegCol" headerText = "Reg" dataField = "data" / >
    < / mx:columns >

    < / mx:DataGrid >
    < / mx:Application >

    How can I dynamically use the right of itemrenderer based on the value of the field? THANKS FOR ANY HELP PROVIDED!

    The best
    Stephen

    You can have more than 1 column renderer engine. There are two ways to do this. One way would be to use States. A State for each possible value in the data. Since you either want a button (data == 'open') or a label (data == 'Full') by using the States wouldn't be a bad choice.

    Alternatively, you can use a canvas instead of a VBox. Make a label and a button with horizontalCenter = "0" "0" = red to make them each other. Make it visible according to the data value:






    where dataField is the value of the property dataField on this converter DataGridColumn.

  • Display a series of images on the stage based on the value of a variable

    Hi all

    Here's another interesting problem! Well, I have an interactive retention test which is charge of an xml file based on the value of a variable scenario (for example, if script = Architecture, then load Q_set 1, if scenario = history then load something else). Now, I would like to extent this and display a series of images on my stage which will be valid only in the current scenario. Here is my code so far. I thought load a list of images on the beginning of the film (for example, Architecture_list, History_list) and then call them according to the value of the variable of scenario, but I would like to hear what you have to say. Any ideas?

    The answer is a series of managers: one called at the beginning of the movie to fill the lists of the appropriate folders (based on the value of the variable gimage) and the other called next and previous. Here they are in case yu need:

    ---------
    Global gFileList, gImagePath, gimages

    on buildList

    gFileList =]

    -defining the path to images:

    gImagePath = "@images /" & gimages & ' / ' "»

    Repeat with i = 1 to the maxinteger
    thisFile = getNthFileNameInFolder (gImagePath, i)
    If thisFile = EMPTY then exit
    If thisFile = the movie then the next repetition
    types of files = [".pct", ".jpg", ".bmp", ".gif"]
    howManyTypes = count (fileTypes)
    Repeat with thisType = 1 to howManyTypes
    extension = getAt (file types, if thisType)
    If thisFile contains extension then
    gFileList.append (thisFile)
    end if
    end repeat
    end repeat

    Member ("Display"). FileName = gImagePath & gFileList [1] - put the first image in the folder at the appropriate place

    Member ("Display"). Picture = .photo member ("display")

    buildList end

    --------------------
    Global gFileList, gFileIndex, gImagePath

    on nextFile

    gFileIndex = gFileIndex + 1

    If gFileIndex > count (gFileList) then

    whichFile = gFileList [1] - set the image = in the last loaded picture holder
    gFileIndex = 1 - the value of the index to the last trick question

    Member ("Display"). FileName = gImagePath & whichFile
    Member ("Display"). Picture = .photo member ("display")
    updateStage

    -go to the audio issues

    _movie. GB (31)

    on the other

    whichFile = gFileList.getAt (gFileIndex)

    Member ("Display"). FileName = gImagePath & whichFile

    Member ("Display"). Picture = .photo member ("display")

    updateStage
    end if

    end

    Global gFileList, gFileIndex, gImagePath
    -----------------------------------------------------------
    the backfile

    gFileIndex = gFileIndex - 1

    If gFileIndex = 1 then

    whichFile = gFileList [1]
    Member ("Display"). FileName = gImagePath & whichFile
    Member ("Display"). Picture = .photo member ("display")
    updateStage
    Sprite (17) TRUE = FALSE - disable the "back" button

    -gFileIndex = count (gFileList)
    end if

    If gFileIndex > 1 then

    whichFile = gFileList.getAt (gFileIndex)

    Member ("Display"). FileName = gImagePath & whichFile
    Member ("Display"). Picture = .photo member ("display")
    updateStage
    end if
    end

  • How to replace the value of a column in a table based on the value in the second column?

    Hi, I would like to find in a table 2D for values that meet certain criteria (for example, a column< 0.98).=""  based="" on="" which="" rows="" meet="" this="" criteria,="" i="" want="" to="" replace="" the="" values="" in="" a="" different="" column="" of="" the="" array="" (change="" to="" 'nan'="" so="" that="" the="" values="" will="" not="" be="" included="" in="" any="" calculations="" on="" that="" column,="" for="" example="" the="" finding="" the="" mean).=""  i've="" attached="" a="" sample="" .csv="" file.=""  if="" the="" values="" in="" column="" 3="" (index="" 2)="" are="" less="" than="" 0.980="" (or="" some="" other="" user="" defined="" value),="" then="" the="" value="" in="" column="" 2="" (index="" 1)="" should="" be="" replaced="" with="" nan.=""  can="" someone="" help="" out="" with="" this="" search="" and="" replace="">

    Thank you

    Keith

    (using LV 2009 SP1)

    A few quick hits.

    You can merge the two for loops

    You have not need one of the constants 1 and 2 in the index table.  They will solve automatically when you expand on the index picture, once you have wired to 0 in the column index.

    It seems a lot of handling additional table spent unnecessarily.

    See below.  I did not try to duplicate your code to see how it actually works, but I believe that I have attached will give the same result with less steps.

  • Name of the dynamic property of object in the table based on the value of a variable

    I have two paintings of custom class objects

    var obj1:Object1
    var obj2:Object2
    
    var array1:Array = [obj1[0], obj1[1], ...]
    var array2:Array = [obj2[0], obj2[1], ...]
    

    Object1 has a property named. Name while Object2 has a property named. Title.

    Now I have a common function including cab accepts an array (array1 or array2) and the name of property the object ("Name" or "Title") as input and needs to access this name of the property of the objects in the array:

    function myFunction(arr:Array, fieldName:String)
    {
        arr[0].fieldName  = "xxx";
    }
    

    the problem I have this achievement does not because the code in the function assumes that the property of that object in the table is actually a string "fieldName" while I want to dynamically determine the names of the fields based on the value of this variable, but cannot understand the syntax to do!

    Don't know if I'm clear - hope that makes sense... ;-) Thank you

    Hey p3pp3r,

    I think I understood you. Try the following and see if you get good results:

    function myFunction(arr:Array, fieldName:String)
    {
        arr[0][fieldName]  = "xxx";
    }
    

    Let me know how it turns out. Good luck!

  • Element of change based on the value in LOV

    I'm trying to disable the item (text box), based on the value of the LOV. And it doesn't seem to work.

    Is it possible to see what is happening in the level of the events? The LOV is perhaps not "changing" ing?

    Dynamically change the item values

    Patrick Wolf-Oracle responded to the question - get the firebug.

    Looking at the console I discovered that the returned of LOV value includes spaces. Resolved issues.

  • Apex 5 schedule: different color based on the value of data field

    Dear Experts,

    I need to have a different color for each record on the calendar based on the value of the data field (eg. category).

    How can I achieve this?

    Thank you!

    See: -.

    You don't have to wait for APEX 5 integration FullCalendar ~ Blog of Doug Gault...

Maybe you are looking for

  • New issue of freezing on Satellite A660 - 11 M

    The first after update bios to v.1.80 made a month ago.Laptop froze during Skype 5.0 for the Visio.

  • Vista SP2 x 64 update fails on shutdown

    I tried several times to install the vista sp2 (64-bit).  Everything seems ok until it tries to restart.  The display shows the closing down and it stops there.  I gave 6 hours before forcing a cold start.  When return chkdsk runs and fails.  Had to

  • My EFS 18-55mm lens will work on a T3i?

    I have a camera with a 18-55mm EFS DS6041. I want to upgrade to the T3i and found a good deal on Amazon for the body only. Can I use this lens with the T3i or what I need to get a new one? I can't find any info online when I search. I guess Yes, but

  • 0x7c923845 and 0x8007000e in Windows XP error code.

    Original title: windows xp error messages. I got errors win32 for awhile. I recently 0x7c923845 error as well. The main progams that I work with are quickbooks and outlook express. I use Windows xp version 2002 service pack 3. Today, I am 0x8007000e,

  • I accidentally deleted the "Documents and Settings" folder

    I accidentally deleted the 'Documents and Settings' folder, what that means? What is the recovery?