xsl: include not solve any HOW to load the xslt

I can't get * < xsl: include > * to work with XMLTRANSFORM in an environment of Oracle's PL/SQL 11.2.0.3. I work exclusively within the database.

I have a basic XSLT which includes another XSLT using xsl: include. I want to load the base as an XMLTYPE XSLT and do transform another XML document, as if the entire XSLT was a large document.

I loaded the base (base.xslt), the extension (include_with_base.xslt) and the combination of the two (entire_thing.xslt) in the XDB catalogue. base.xslt has this statement inside the node, xsl: stylesheet, attempting to include the other xslt:
' * < xsl: include href="/public/include_with_base.xslt" / >. *

I have the files stored in XDB XSLT. It verifies that they are intact:
1. the base xslt which has the xsl: include the statement loads very well.
Select xdburitype('/public/base.xslt').getXML (double);

2. the extension which is the target of the reference to include it in the basic xslt support very well.
Select xdburitype('/public/include_with_base.xslt').getXML (double);

3. the combination of the two, where I copy - paste all the children of include_with_base.xslt xslt:stylesheet in the xslt:stylesheet of base.xslt load node also very well.
Select xdburitype('/public/entire_thing.xslt').getXML (double);

However, when I try to run a transformation of some xml test using base.xslt, it fails:
Select XMLTRANSFORM(xdburitype('/public/xml_input.xml').getXML (), xdburitype('/public/base.xslt').getXML ()) FROM dual;

When I try to run the same transformation of the same test xml using entire_thing.xslt, it works:
Select XMLTRANSFORM(xdburitype('/public/xml_input.xml').getXML (), xdburitype('/public/entire_thing.xslt').getXML ()) FROM dual;

When I run both XSLT transformations and transformation using altovaxml is in the same directory of drive (and I use a relative reference with no path information and not an absolute reference, as I show in the above examples), the transformation works very well.

What can I do to run a XSLT which is essential the XMLTRANSFORM < xsl: include... / > reference in there?

Published by: user11359697 on April 15, 2013 13:49

Ok thank you. Now I can reproduce the problem:

SQL> select xmltransform(
  2           xdburitype('/public/PEOPLE.xml').getXML()
  3         , xdburitype('/public/BASE.xslt').getXML()
  4         )
  5  from dual;
ERROR:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00602: Invalid child element '#text' of element 'binary'.

no rows selected

The error is related to the way in which the resources are stored in the XML DB repository and are accessible from XSLT.
Apparently, when the resource is interpreted as a binary stream, the language of xsl: include directive fails. I would be considered a bug.

By default, there is no mapping predefined MIME for the 'xslt' extension so the resource ' / public/TITLES "is stored using the default" application/octet-stream"MIME type
You can check that by questioning RESOURCE_VIEW:

SQL> set long 50000
SQL> set longc 50000
SQL> set lines 200
SQL> set pages 100
SQL> select xmlserialize(document res)
  2  from resource_view
  3  where equals_path(res, '/public/TITLES.xslt') = 1;

XMLSERIALIZE(DOCUMENTRES)
--------------------------------------------------------------------------------------------------------------------------------------------

To work around the problem, you need to reference resources stored with a text-based MIME type, such as the "xsl" extension (predefined in xdbconfig):

select *
from xmltable(
       xmlnamespaces(default 'http://xmlns.oracle.com/xdb/xdbconfig.xsd')
     , '//extension-mappings/mime-mappings/mime-mapping'
       passing dbms_xdb.cfg_get()
       columns "extension", "mime-type"
     ) ;

or if you want to keep the "xslt" extension, it maps to the mimetype "text/xml".
You can do it like this:

SQL> exec dbms_xdb.ADDMIMEMAPPING('xslt','text/xml');

PL/SQL procedure successfully completed.

SQL> commit;

Commit complete.

Drop and reload the resource ' / public/TITLES.xslt ' in the repository and it should be OK:

SQL> select xmltransform(
  2           xdburitype('/public/PEOPLE.xml').getXML()
  3         , xdburitype('/public/BASE.xslt').getXML()
  4         )
  5  from dual;

XMLTRANSFORM(XDBURITYPE('/PUBLIC/PEOPLE.XML').GETXML(),XDBUR
------------------------------------------------------------


  Hello, Mrs.AliceAble
  Hello, Mr.BobBungler

Tags: Oracle Development

Similar Questions

  • WinXP Pro 2008 does not recognize my computer drivers & load the standard drivers 2001

    WinXP Pro 2008 does not recognize my computer drivers & load the drivers of standard system of 2001; Impossible to upgrade

    then load systemroot, I don't want systemroot, also charges 3.1 drivers, 95, 98. 2000 & winnt 3, 4, 5 &

    Sometimes it runs under DOS only & sometimes not

    I don't want to network & sharing, because there's someone attached to my system & load malware {pirate just deleted} & takes control so I'm at work & then interupts me online with flash & js causing anomalies onscreen, resumes also connection & homepage.

    Now my Norton is denied access (& other programs) & I can't use it

    Suffered disc & reworked several times, I tried the sharding & partitioning is not on all COMPUTERS

    This pirate has done this for 12 years, 7 computers & 5 operating systems.

    SOMETIMES HE TAKES CONTROL OF MOUSE & KEYBORD. YOU SHOULD SEE MY CDROM CONTROL CD ABNORMALLY.

    This is clearly abuse & I am at my wits end! Help me get rid of this danger, please

    but hidden.
    Try this, go to disk management (Control Panel, administrative tools, computer management).
    They appear here? If so, you may need to reassign a drive letter for them.

    If not, look in Device Manager, they appear in red/yellow or is there any "unknown devices"?

    Windows cannot have the drivers either, so you can download the drivers from the manufacturers Web site.

    1. start the computer.
    2. press F8 repeatedly to display the start menu.
    3. Select safe mode in the start menu.
    4. right - click on "my computer".
    5. Select Properties.
    6 select the Hardware tab.
    7. click on the button "Device Manager."
    8. click on the (+) plus sign next to CD/DVD players.
    9. right click on each component and select uninstall
    10. follow steps 9 to all components under this category.
    11. restart the computer.

    It must reload the drivers for the CD/DVD drive.
    or

    http://h10025.www1.HP.com/ewfrf/wc/document?DocName=c00619385&LC=en&cc=us

    check on this site how to connect dvd cd players

    I tried the following to help resolve the problem:
    1 attached Mouse, provided power but does not recognize the device. Assistant add hardware does not yet come upward.
    2. 3 readers USB flash, in every port and they were not recognized or attached.
    3 uninstall all devices of USB root hub and rebooted. No change.
    4 uninstalled all the USB controllers and restarted. No change.
    5 install a logitech mouse driver that is the same as the mouse installed. The mouse has not always recognized.
    6 re-flashed the BIOS. No change
    7. utility of diagnosis of Dell Ran and no problem found with the controllers or the USB ports
  • How to load the contents of a layer as a selection in photoshop CS4

    Hello

    In photoshop cs4 when I ctrl-click on a layer thumbnail in the layers panel, photoshop select any layer not its content.  How to load the contents of a layer as a selection in photoshop cs4?

    Thank you

    to load the contents of the layer as a selection, you go to the Panel layers and Ctrl + click on the RGB.

  • How to load the operating system of split hard drive D of Aspire5315?

    OS in my laptop does not work correctly. Standard recovery system does not work - no food no points.

    How to load the operating system of split hard drive D of Aspire5315? -step by step please.

    Please consult this useful link: http://acer.custhelp.com/app/answers/detail/a_id/2631/

  • How to load the metadata cloud SEEP of Fusion GL

    Hello

    Can someone let me know how to load the metadata pending SEEP cloud of merger GL through the management of data (FDMEE).

    I'm not able to see the metadata tab rule in FDMEE, as there was in previous versions.

    Y at - it another option to load the metadata into the clouds.

    Kind regards

    Srikanth

    You can not directly integrate metadata into FDMEE PBCS. The metadata option has been disabled.

  • Yesterday, I received a bill that I can not open to creative cloud that I did not order and you do not need.  How to cancel the invoice?

    Yesterday, I received a bill that I can not open to creative cloud that I did not order and you do not need. How to cancel the invoice?

    Cancel see answer #1 in https://forums.adobe.com/thread/2023066 - includes a link to Chat from Monday to Friday

  • 'ERROR 01' as I have only 66 MB of free space on my MacBook Air: (how to load the external Creative cloud on a hard drive software?

    I bought the full package, but I couldn't get it to load on my laptop.

    So my question is:

    How to load the external Creative cloud on a hard drive software?

    Or do you spend, how the "Installer Creative Cloud' to load it on an external hard drive?

    Thanking you in anticipation.

    : )

    you have the cc office application installed on your computer?

    If not, install the - apps Download Adobe Creative Cloud | CC free trial Adobe

  • How to load the opencard.properties when you use OpenCardFramework as a Jar?

    Hello

    I use the OpenCardFramework as a plug-in in eclipse project, when the other project to use, the opencard.properties is not found.
    So I put the opencard.properties file in the [java.home]/lib/opencard.properties folder, it works.]

    But I want to put opencard.properties file in another project, then how to load the file.

    Thanks in advance!

    CardTerminals.waitForChange
    CardTerminal.waitForCardPresent
    CardTerminal.waitForCardAbsent

  • How to load the CMOS (get the Bios settings) on Lenovo IdeaCentre K330

    Hello

    How to load the CMOS (get the Bios settings) on Lenovo IdeaCentre K330? Found no parameters. I can click on F2, then network and passwords, is this all I could configure?

    OK, I got it - you must click F1 several times when starting system upward!

  • How to load the second list meter if I have something in the first list of select/focus?

    How to load the second list meter if I have something in the first list of select/focus?

    public class spintest extends BaseScreen implements {FocusChangeListener}

    final String [stateList] = {"New York", "Washington"};
    final String [] NYcities = {'Manhattan', 'Queens', 'Brooklyn', 'Bronx'};
    final String [] WashCities = {"Redmond", "Kent", "Seattle", "Bellevue"};

    public SpinTest() {}
    SpinBoxFieldManager spinBoxMgr = new SpinBoxFieldManager();

    SpinBoxField spinBoxStates = new TextSpinBoxField (stateList);
    spinBoxStates.setFocusListener (this);

    SpinBoxField spinBoxCities = new TextSpinBoxField (NYcities);

    spinBoxMgr.add (spinBoxStates);
    spinBoxMgr.add (spinBoxCities);

    Add (spinBoxMgr);
    }

    ' Public Sub focusChanged (field field, int context) {}
    If (spinBoxStates == field) {}
    Salt string = (String) spinBoxStates.get (spinBoxStates.getSelectedIndex ());
    If (sel.equals ("New York")) {}

    I have to load all the cities of New York in the second wheel if I select 'New York' in the first wheel

    }
    else {if (sel.equals ("Washington"))

    I have to load all the cities of Washington in the second wheel if I select 'Washington' in the first wheel

    }

    }

    Simply call the TextSpinBoxField.setChoices method, transmitting your new list of choices.

  • Win version first elements 14 rather than Mac version you downloaded. Serial number does not work. How to get the right serial number

    Win version first elements 14 rather than Mac version you downloaded. Serial number does not work. How to get the right serial number?

    It is unclear what problem you are facing... the wrong version or the wrong serial number.  The serial number is likely for the other version.  You don't want the serial number of Windows or the Mac version?

    One of the following conditions may be useful...

    You can exchange languages/platforms for a newer version product if you follow the instructions on the following link:

    l http://helpx.adobe.com/x-productkb/Policy-Pricing/Order-Product-Platform-Language-swap.htm

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Serial number and activation support (non - CC) chat
    https://helpx.Adobe.com/contact.html?step=PHSP-PHXS_downloading-installing-setting-up_lice nsing-activation_stillNeedHelp

  • I'm new to CC.  I discovered that I had to download first CS6 inorder to get it. (May not yet know how to get the title templates, etc. cannot understand instructions; but I spread) I see that it still says trial.  How can I get the

    I'm new to CC.  I discovered that I had to download first CS6 in@order to get it. (May not yet know how to get the title templates, etc. cannot understand instructions; but I spread) I see that it still says trial.  How can I get the full thing.  I am a Subscriber complete cc

    I don't know what you've done, but here are the instructions to install the PProCS6 and the callback with a cloud account

    Yet the instructions http://helpx.adobe.com/encore/kb/encore-cs6-installed-cc.html if you have a subscription

    - and the difference in the Cloud application manager 2015 https://forums.adobe.com/thread/1906752

    Still will not run as a trial, it is enabled when you install and activate PProCS6

  • How to load the shared entities

    Hello guys! I did experiments with Chargeback manager for awhile, but I have a question. So far, I have seen that with Chargeback manager, it is very easy to calculate the cost of features in a virtual infrastructure (for example, ESXi, VM etc) based on several cost models.
    But what happens when we talk about shared resources? For example if a (BU) Business Unit uses an ESXi server, it is very easy to load than BU. You have created a cost report that ESXi and you present to the BU.

    But when, on the other hand, you have DRANK using the same things that ESXi (for example a mail server) can become more complicated. You can still find the cost of this ESXI, but how will you allocate this cost on the BU who use this server? For example, divide the cost by the number of BU? Or divide the cost by the number of BU take the consideration of the number of users in each BU... etc...

    So the question is, if Chargeback Manager has additional features that could help this process...

    Bravo!

    Hello

    Yes, but the function is only limited to virtual machines directly added to a folder of chargeback hierarchy. Chargeback has an option to share a VM on records (i.e. from Business units). Please refer to the user guide for "sharing cost of Virtual Machine.

    For now, you need to calculate the percentage of shares according to the criteria (number of email users) for a virtual computer and use this Chargeback percentage manually.

    Kind regards

    Agnes

    From: communities emailer [email protected]<>[email protected]>

    Reply-To: communities emailer [email protected]<>[email protected]>

    To: Agnes Pannem [email protected]kumar<>[email protected]>

    Subject: New message: "how to load shared entities.

    Http://communities.vmware.com/index.jspaVMware communities >

    How to load the shared entities

    juan11http://communities.vmware.com/people/juan11response > in VMware vCenter Chargeback - see the discussion complete onhttp://communities.vmware.com/message/2051025#2051025

  • How to load the site Web of Movieclip. AS3.0 Flash

    Hi, we need to load the website in movieclip. (www.adobe.com). how to load the flash swf file in the site.

    Thks

    If you create an AIR application, you can use the HTMLLoader class.

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/HTML/HTMLLoader.h tml

  • specification does not match any newspaper archive in the recovery catalog

    RMAN > delete archivelog until time = ' sysdate-15';

    output channel: ORA_DISK_1
    output channel: ORA_DISK_2
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 151 devtype = DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: sid = 143 devtype = DISK
    specification does not match any newspaper archive in the recovery catalog


    Database 10.2.0.3.0 on win2008 (VMWARE)
    Thank you

    Honey says:
    RMAN > delete archivelog until time = ' sysdate-15';

    output channel: ORA_DISK_1
    output channel: ORA_DISK_2
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 151 devtype = DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: sid = 143 devtype = DISK
    specification does not match any newspaper archive in the recovery catalog

    Database 10.2.0.3.0 on win2008 (VMWARE)
    Thank you

    There is no archived redo log file corressponding your query. There is no archived for 15 days ago redo log file

Maybe you are looking for

  • Menu bar

    In my anroid phone, I will not be able to display the menu bar. Can U please help on this

  • is it possible to connect my HP 2101nw my iphone

    I have a HP PhotosmaT C5280 All-in-one printer and I would like to print via my iphone, I have a HP 2101nw Wireless G USB Print Server attached to make it wireless, I would like to know if there is a way to make it work with air-print or e-print. I i

  • line that appears on the monitor screen

    There are line appearing on my screen, says that there is a problem with the image, and then asked me to restart my laptop. now im in safemode, my speakers does not work, what could be the problem?

  • How to effectively create a single waveform based on data from two other waveforms?

    I have a table 1 d of waveform with size = 4 which contain data of voltage potentiometer "gross".  I need to handle index 0 & 1 waveform data using the formula below to calculate a single waveform of angle data.   I need to do the same for the 2 & 3

  • HP ENVY 17 t-j000 decommissioning select edition to Windows 7 need drivers

    For those who come to this post. Read all before you install anything. My laptop is now 100% works on Windows 7. I got this for my girlfriend and she refuses to use it with Windows 8. So I try to get Windows 7 working for her. I found some through th