self-closing tags in different versions of database.

Hello.

I have problems with tags of closing across different databases. The script used to test is

declare
--
-data
--
V_XML_DATA xmltype: = XMLTYPE ("<?") XML version = "1.0"? >
rowset <>
< ROW >
< PART_NUMBER > HI8005 < / PART_NUMBER >
< / ROW >
< ROW >
< PART_NUMBER > RV8015 < / PART_NUMBER >
< / ROW >
(< / LINES > ');
--
-Stylesheet
--
V_xsl xmltype: = xmltype ("<?") XML version = "1.0"? >
< xsl: stylesheet xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" xmlns:rs = "" urn: schemas-microsoft-com: rowset "xmlns:z ="#RowsetSchema"version ="1.0">"
< xsl: output method = "xml" encoding = "windows-1251" Indent = "Yes" omit-xml-declaration = "yes" / >
< xsl: template match = "/" >
< xmlns:rs rs: data = "urn: schemas-microsoft-com: rowset" >
< xsl: for-each select = "game of LINES/ROW" >
< z: line xmlns:z = "#RowsetSchema" id = "811" >
< xsl: attribute name = "Part_Number" >
< xsl: value-of select = "PART_NUMBER" / >
< / xsl: attribute >
< / z: row >
< / xsl: foreach >
< / rs: data >
< / xsl: template >
< / xsl: stylesheet >
');
--
--
--
Start
--
-Transform
--
SELECT XMLTRANSFORM (V_XML_DATA, V_XSL)
IN V_XML_DATA
FROM DUAL;
--
-Output
--
DBMS_OUTPUT. Put_line (dbms_lob.substr (V_XML_DATA. GETCLOBVAL(), 255, 1));
end;


This running on Oracle Database 10g Release 10.1.0.5.0.
I get this result - with self closing tags.

< xmlns:rs rs: data = "urn: schemas-microsoft-com: rowset" >
< z: row identifier = "811" xmlns:z = "#RowsetSchema" Part_Number = "HI8005" / >
< z: row identifier = "811" xmlns:z = "#RowsetSchema" Part_Number = "RV8015" / >
< / rs: data >


run this on the Oracle 11 g Release 11.2.0.1.0 database.
I get this result - with specific closing tags

< xmlns:rs rs: data = "" urn: schemas-microsoft-com: rowset "xmlns:z ="#RowsetSchema">"
< z: row identifier = "811" Part_Number = "HI8005" >
< / z: row >
< z: row identifier = "811" Part_Number = "RV8015" >
< / z: row >
< / rs: data >


I know this is not well-formed in gR 10, 1 but I need to replicate that in 11 GR 2.
Anyone know if this is possible, whether by changed the XSL, database installation settings (or other)? Pointers or suggestions welcome.

Thanks for any help.
Tony.

Ah, now it's a different matter. We don't see the extra space in there. In the future, use the tag {code} (without the space) to encapsulate any text you want to put in shape to be kept, as I did below. I opened a bug with Oracle that space should not be presented as that changes the meaning. Here is a possible workaround as well

Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 

SQL>
SQL> declare
  2  --
  3  -- data
  4  --
  5     V_XML_DATA xmltype := XMLTYPE('
  6  
  7  
  8  HI8005
  9  
 10  
 11  RV8015
 12  
 13  ');
 14  --
 15  -- Style sheet
 16  --
 17     V_xsl xmltype := xmltype('
 18  
 19  
 20  
 21  
 22  
 23  
 24  
 25  
 26  
 27  
 28  
 29  
 30  
 31  
 32  ');
 33  V_NEW_XML_DATA xmltype;
 34  --
 35  --
 36  --
 37  begin
 38  --
 39  -- Transform
 40  --
 41     SELECT XMLTRANSFORM(V_XML_DATA,V_XSL)
 42     INTO V_NEW_XML_DATA
 43     FROM DUAL;
 44  --
 45  -- Output
 46  --
 47     DBMS_OUTPUT.PUT_LINE('Via SQL XMLTRANSFORM');
 48     DBMS_OUTPUT.PUT_LINE(V_NEW_XML_DATA.GETCLOBVAL());
 49
 50     DBMS_OUTPUT.NEW_LINE;
 51     DBMS_OUTPUT.PUT_LINE('Via PL/SQL TRANSFORM');
 52     v_new_xml_data := v_xml_data.transform(v_xsl);
 53     DBMS_OUTPUT.PUT_LINE(V_NEW_XML_DATA.GETCLOBVAL());
 54
 55  end;
 56  /

Via SQL XMLTRANSFORM


 
 
 
 


Via PL/SQL TRANSFORM

  
  

As you can see, 11.1.0.6 produces a slightly different result than 11.2.0.1. I don't know why the SQL XMLTransform approach puts a new line at the beginning of the XML output so feel free to appear too. I hope that the PL/SQL method generates what you need in your version.

Tags: Oracle Development

Similar Questions

  • How to get self-closing tags

    Hello Adobe community...

    Would appreciate a quick hand.

    When encoding in Adobe Dw, tags usually close after said opening tag and proceed then to ' < / ' keys. Suddenly he stopped. Now I know about the preferences panel: close the tags > after you type > 'radio button options. I have reset the option: after you type > ' < / ' and apply to hit - but this has not fixed the problem.

    One thing I noticed that could cause this problem is that whenever I type in Code view, I noticed that Dw highlights everything above in the coding online I'm... I have no idea how to get rid of this setting and I have the feeling that this is what causes the tags not self-closing.

    Would really appreciate it stuff... its been my head in!

    See you soon,.

    Josh

    It is likely that there is not a valid code on the page.  Can you try to run your page through the validator and see what shows up?  The W3C Markup Validation Service

  • Highlight of the self-closing tags

    Recently, I upgraded my Mac and reinstalled then Adobe. Since working with Dreamweaver on my new maching I realized that the code view is no longer auto highlights tags (for example, divs, lists, etc.). On my old configuration, I just clicked on a tag and it would automatically identify/highlight the closing tag.

    I am aware of the process of highlighting tags parent etc. manually. But to get to auto? It doesn't seem to be any specific option for this in the "Highlight" preferences either?

    Any suggestions people?

    Thanks in advance!

    I don't remember DW never cela.  Mine doesn't work.   Maybe you had installed a 3rd party extension that provided this feature?

    Nancy O.

  • RMAN can back up/restore different versions of OS without worrying about Oracle databases

    Hello

    I am to evaluate Recovery Manager to back up and restore Oracle databases.

    I save/restore the Oracle data base diferents versions, these databases are running in different operating systems (AIX, LINUX, Windows)

    For example:
    Database Oracle 9 in AIX 5.3 system
    Database Oracle 10 system Lunix
    Database Oracle 9 in Windows system

    I want to have a single server RMAN for backup/restore all my databases Oracle, is it possible?

    A single RMAN server can backup/restore different versions of databases Oracle regardless of the operating system?

    If the answer is Yes, do I need to have an operting specif system in my RMAN Server? (AIX, Linux, Windows, etc.).


    Thanks for your help;

    On the new server, install the rman recovery catalog and save all databases.

    Then you can back up these databases independent of the platform and version by using the recovery catalog.

    However, some of the features that you backup cannot be used based on the version of database. For example, backup compression is available on 10g but not in 9i.

    HTH.

    Nirmal

  • Batch generate different versions?

    I use RHX5 HTML. Here's the deal. I have a database to help with 500 + topics. I need to publish 12 WebHelp (main layout) of the different versions of this database. Each version consists of a subset of the subjects of 500 +. There is overlap between versions (for example some versions share the same subjects). Each of the 12 versions has a unique tag of conditional compilation associated with him. For example, when I want to generate GROUPA, I create a version which contains the subjects only associated to the conditional compilation tag GROUPA. Obviously, it is very time consuming. I regenerate each version separately. Is there a way to simultaneously generate a WebHelp version for each of my tags in conditional compilation. It seems that there should be, because it's a procedure very consequently (associate label build, publish, associate label build, publish, and al.). Thank you.

    Thank you. That's exactly what I was looking for!

  • Exadata - execution of different versions of Oracle

    Is it possible to run different versions of Oracle on Exadata device? Like most of us, some sellers are behind when it comes to certify their applications running on different versions of Oracle. I just want to know the possibilities and limitations.

    Thank you.

    If you have decided to move to Exadata, the best thing to do is run 11.2.0.4.  I wouldn't go below 11.2.0.3 for a new implementation, since 11.2.0.2 is out of error correction.  You won't be able to get 11.1 to run easily, and 11.2.0.1 will be difficult because the DSO start is the value 11.2.0.2.0 for the compatibility of the database (you must watch on a 4 X to see if it is updated to 11.2.0.4.0).  Of course, 12.1 is fully supported.

  • By selecting in the Insert Panel does not add the closing tag

    Hello

    I wish to emphasize the part of the text in the Document window and select an item in the Insert panel to frame part.

    However, when I select the section or paragraph, it only adds the opening, such as < h > and < p > without his counterpart of the fence.

    It of just a bug or am I skip a step? Please tell me how the closing tag can be implemented by using the Insert panel.

    Thank you in advance,

    EAD

    I can't my pCOC CARD on W7 2015 to do what you describe.

    What version of the program and which OS are you running?

    Your code is error free? Try to run the validator at http://validator.w3.org/nu for a list. Many features of DW depend on clean and valid code working properly, it is possible that a small mistake may be confusing program.

  • Question about PSU patch when IM and DB are different version

    Hello world

    I have some doubts when it comes to the application of patches to the PSU, when the House of GI and DB House are different versions.

    I have 2 node RAC on RHEL 5 cluster.
    My home grid Infrastructure is running version 11.2.0.3 while my 11.2.0.2 RDBMS RAC is.

    I know that the PSU of grid Infrastructure also includes the power supply of the database and that it should be applied in two homes the same version.
    When patching my RDBMS RAC at home (11.2.0.2); should I install the PSU IM for 11.2.0.2 or only the part of the RAC database?

    For example:
    installation 11.2.0.2.6 PSU which consists of 13696242 (game of Grid infrastructure update fixes) and 13696224 (database updated Patch to update).
    Should I ignore the 13696242 and just install 13696224? Or do I have to install both.


    Thank you.

    Published by: AJ on 20.jul.2012 05:26

    Hello

    ignore the part of IM and use the - oh flag on DB home only.
    (Section in the readme file, which talks about the application of software patches DB only).

    Concerning

    Sebastian

  • Different versions of LCM/Net/vCo.

    Hello everyone,

    I try to install LCM 1.1.0 and I get the below error:

    ERROR 337-0800 cannot install plugin 'lcm', reason: (plugin - lcm) cannot run the installation script ' scripts/installOrUpgrade.js', reason: different versions of LCM/Net/vCo.

    I use the latest version of orchestrator and the network is the same as LCM.

    any ideas?

    THX,

    -emax

    I see in your server.log file the following happened:

    First that you have installed LCM on server VCO.

    You have configured only the LCM database using the server gonfiguration VCO. However, you missed to configure settings of datadase "networking."

    After you run the orhestrator, installation failed with fhr after reason (seen in the log file):

    2010-02-12 09:51:51.481 - 0800 ERROR cannot install plugin 'lcm', reason: (plugin - lcm) cannot run the installation script ' scripts/installOrUpgrade.js', reason: ReferenceError: 'NetworkingDatabase' is undefined. (Name of the dynamic Script Module: execNetDatabaseUpdate #2)

    Correctly, you will understand that you also need to configure the network settings of the database.

    Then you run orchestrator and found this problem with incompatible versions.

    What really happened is that LCM database has already been created and that it was the version 1.1.0. So installation run in version control and upgrade failed with the affirmation of incompatible version.

    My advice is to purge the database of LCM (that is to say delete and create) and just then rerun orchestrator. On own databases, the installation program must succeed.

  • A challenge: combining dirty tab Interface User Shell + self-closing-BTF

    I find it difficult to use the facilities of the shell of the interface user ADF of the conduct of the stubborn self-closing-standalone task.

    What the Shell of the user ADF interface does well: in the Shell of the user interface, you can open a standalone BTF as an activity, and if the BTF closes itself (that is to say... given the user selects ok or cancel/close button, the BTF stand-alone navigates to a special return flow option), the BTF closes and the ADF UI Shell correctly closes the tab around the activity.

    My challenge is that I want to add installation tab 'dirty' shell ADF of the user interface for the task force, such as if the user inside the BTF selects a custom cancel/close button (not the Shell UI button close tabs) that accesses the task-flow-back option in the Working Group, they had the chance to confirm or cancel the closing via the ADF UI Shell dirty tab popup. (Note that task-flow-return options are crucial to BTF to self-latch because they not only allow the BTF of commit / rollback, as well as make them re-entering or playing with the functions of backup point).

    If the ADF UI Shell shellLauncher Bon we call method makeCurrentTabDirty on the opening of the BTF, activity of the BTF tab is italicized properly. Even if the user selects the BTF Cancel button, the BTF farm (she disappears in fact from the Shell of the user of ADF interface) but the Shell of the user activity tab interface is still visible, then watch the dialogue dirty tab, which is too late, the Working Group has already closed.

    So my solution is when the button close down BTF, before he navigates to the BTF task-flow-back option, I can get the ActionListener to the button close BTF to trigger an event that is contextual to the shell of the user ADF to capture interface "shut up" occurrence. The Shell of the user interface then has a chance to show the dirty tab dialog box by capturing the contextual event.

    Then, my sticking point is the class TabContext provided in the Shell of the user interface has no way to call the dirty tab dialog box without calling the removeTab method. It is not desirable for the Shell UI close the BTF as task-flow-return of the BTF activities must always be called... remember that they have an additional feature that is required for the BTF.

    Even if the TabContext method is a solution to display the dialog box dirty tab without closing the tab (TabContext is pretty easy to extend yourself if you have the source code), the problem to which I can't think a solution is, how to get the tab dialog box dirty to communicate with the BTF stand-alone version (yes/no) result such that it can take a decision on the abandonment of action close and let the user on the current page fragment, or accessing the task-flow-return node?

    We could suggest that I could expose the dirty to the BTF stand-alone tab dialog such that she could show the dialog box confirm himself. However the point being is the BTF is autonomous and should have no knowledge where it is used, in the Shell of the user interface or some other supershell application. Publish plans to close the BTF via a contextual event seems fine, but alternatively of loading in the components of the interface layer user seems to break the independent principle I-don't-know-or-care-about-what-my-parent-caller-is-doing BTF appears on the border of evil.

    Anyone pointers, suggestions or comments like you're-an-idiot-Chris,-do-it-this-way? Your help is appreciated.

    Kind regards

    CM.

    PS. JDev v11.1.1.2.0 with interface User Shell v1.02

    How to get the dirty tab dialog box to connect the result (yes/no) with the BTF stand-alone version, as it can take a decision on the abandonment of action close and leaving the user on the current page fragment or accessing the task-flow-return node?

    I hope that everyone interested in this challenge is useful the application at this link: http://soadev.blogspot.com/2010/08/loosely-coupled-bounded-task-flows.html

    Kind regards

    Rommel Pino
    http://soadev.blogspot.com

  • dba_registry table showing different versions.

    Salvation of DBA

    my version of the database is 9.2.0.6, but follows showing different versions, is there a cause to the database?
    Oracle XDK for Java 9.2.0.8.0 VALID
    Oracle interMedia 9.2.0.1.0 LOADED


    SQL > col computername to a40
    version collar for a15
    Select ComputerName, version, dba_registry;
    SQL > SQL >
    STATUS OF VERSION COMPUTERNAME
    ---------------------------------------- --------------- -----------
    Oracle9i catalog 9.2.0.6.0 view (s) VALID
    Oracle9i and Types VALID 9.2.0.6.0 packages
    Oracle9i Real Application Clusters INVALID 9.2.0.6.0
    JServer JAVA Virtual Machine 9.2.0.6.0 VALID
    Oracle XDK for Java 9.2.0.8.0 VALID
    Oracle9i Java packages 9.2.0.6.0 VALID
    Oracle interMedia 9.2.0.1.0 LOADED
    VALID space 9.2.0.6.0
    Oracle 9.2.0.6.0 Text VALID
    9.2.0.6.0 SUPPORT OLAP analytic workspace
    Oracle OLAP API 9.2.0.6.0 LOAD

    STATUS OF VERSION COMPUTERNAME
    ---------------------------------------- --------------- -----------
    Catalogue of OLAP 9.2.0.6.0 VALID

    12 selected lines.

    Thank you
    SG

    SG,

    You can also consult the following note:

    Note: 292017.1 - wrong Version of some components of RDBMS in DBA_REGISTRY after the creation of DB
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=292017.1

    Kind regards
    Hussein

  • Have just been told by BT that I need a new/different version of Thunderbird to work with the new system BTMail (previously BTYahooMail) - I do?

    I have btinternet email for years and Thunderbird for too long and have been happy with both. Unfortunately, I'm not technical enough to understand the majority of assistance or instructions on the information pages of support technique/Thunderbird, but haven't managed to get TB put in place in the first place (long time) and it seems to have worked well since. However, on Friday both of my accounts to BT (sets of two numbers), so two BT email addresses have been moved new old BT Yahoo mail BT mail. I was unable to connect to one of them, but the other was very good - I have had help 'screen sharing' a technical chap BT to sort. However, he was able to Conect Thunderbird with email servers. I said to BT and the chap tech tried to sort on screen sharing, but could not (and I have been unable to follow what he was doing). A few months ago, I made a few changes, as requested by BT, to allow for the transfer to go smoothly (!), but the man has changed some things Friday, I think, as well. He could not solve the problem of TB and I can't figure it out at all, and the Lady of BT Tech help to whom I spoke this morning (and who had managed to fix my problem of connection BTID, fortunately) had a look and suggested that maybe I needed an update/new/different version TB or 'another email address. Well, I really want to stay with Thunderbird and was hoping that someone here could explain it in simple English for me, please? I was wondering what will happen, assuming that I need to download an updated version / different, if I did this and then sort of re-installed my existing BT email addresses (as if I started again with Thunderbird)? I hope that there is someone here who can help you - thank you - I'm rather fond of this little blue bird. Thank you.

    Hi, Zenos, thank you so much for your help - I have now (touch wood) have my email back after following your instructions. If all goes well, it will remain in operation during my upgrade to infinity next week.
    Thank you for taking the time to answer my question a little disjointed.
    Had never heard of before critical path, I thought that BTMail was BT Oh, well, as long as it works I guess (I hope it's better than the Yahoo system).
    Thanks again.

  • FAQ (26): I installed a different version/version of Windows and now SDM will not show me updates.

    I installed a different version/version of Windows and now the SDM does not work in "Update" mode

    This can occur when some system that HP did not specifically tests with the model is installed and often happens with models and Windows Ultimate edition (or even 64-bit editions on some older models) before Windows 8 Ultimate.

    Because SDM detects the new operating system, but it cannot match in the SDM catalog, he (SDM) will disable mode "Update."  However, please note that you can still use SDM mode 'All products' to download your SoftPaqs by doing as follows (the Probook 4730 s is used as an example):

    1. Press the "view all products" in the SDM toolbar
    2. If a dialog box warning that "no operating system have been selected, then skip to step.
    3. Press OK to close the dialog box.
    4. Check the «Microsoft Windows 7 Professional 64 Edition»
    5. Click on the tab "language filter".
    6. 'English - International' is checked.
    7. Press the OK button.
    8. Now, expand the tree on the left side of the SDM application by selecting the following:
    9. HP Probook Notebook PC Series 4700
    10. HP Probook 4730 s Notebook PC
    11. Microsoft Windows 7 Professional Edition 64
    12. Check the box 'international - English.
    13. Press the button "find available SoftPaqs.
    14. After "things calm down", click on the button "See the last SoftPaqs" at the top right of the application of SDM.

    The latest list of the Softpaqs for your model should now be displayed. We recommend that you download all listed SoftPaqs. This whole new way SoftPaqs are released for this model will appear on the top list titled "Available SoftPaqs" display.

    To install a SoftPaq after downloading, do the SoftPaq to the ListView "Downloaded SoftPaqs" right click and select "install SoftPaq.

    Important note: most SoftPaqs listed using the method above should apply to your model, but a small number of SoftPaqs might not be applicable to your model due to the offers of different material for your model. This means that not all listed SoftPaqs will install on your model and that is normal.

  • How can I run two different versions of Firefox, the last does not work with a site important I need to use?

    With the latest version of Firefox, I can't ' fast email ' to my students through the ANGEL of the College System. I had to uninstall and go to an earlier version. I prefer the new rev.

    A way to run two different versions. It doesn't have to be simultaneously. Seems to be a problem on the Mac and my XP systems.

    Thank you
    Kim

    You can install the portable version of Firefox 3.6.x to access Web sites that don't work with Firefox 5 +.

  • Where can I find support for html 5 tags for each version of Firefox?

    Where can I find support for html 5 tags for each version of Firefox?

    Thanks for the help.

    See:

Maybe you are looking for