XSL-1010 (Error) Element 'when' not found in 'xsl:choose'

I am using xmlparserv2.jar from xdk9020b.
An XSL file is loaded as XMLDocument and is modified by adding elements to a xsl:choose tree. The file acts as a "template" for an XSL that must be built and used in memory.
When it is used as constructor for a new XSLStylesheet, then it generates the above error message. If I dump the XMLDocument to file, it contaisn the appropriate modifications, and if I execute oraxsl with it as stylesheet, everything works fine.
Here the snipped of code I use:
DOMParser parser= new DOMParser();
parser.setPreserveWHitespace(true);
URL xsvgURL = new URL ("file","localhost","svg.xsl");
parser.parse(xsvgURL);
XMLDocument xsvgdoc;
xsvgdoc = parser.getDocument();
XMLElement ex = (XMLElement)xsvgdoc.getDocumentElement();
NodeList getit=xsvgdoc.selectNodes("//xsl:choose",ex);
Element el = xsvgdoc.createElementNS("when","xsl:when");
el.setAttribute("test","contains($a,'test')");
((XMLElement)getit.item(0)).appendChild(whennode);
XSLProcessor processor = new XSLProcessor();
XSLStylesheet xsvgstyle;
xsvgstyle = processor.newXSLStylesheet(xsvgdoc);
your feedback is appreciated, since I am currently stucking on this problem.
null

Ensure that the code is correct in all 6 fields. Have you used the "Validate template" feature before previewing to see if you are able to get any more information?
I can take a look at your template if you can send it to [email protected] Send me a sample xml file for testing purposes.
Thanks

Similar Messages

  • Get error message: "Element 'when' not found in 'xsl:choose'"

    Thank you in advance for your help.
    I got this error message:
    Caused by: oracle.xdo.parser.v2.XMLParseException: Element 'when' not found in 'xsl:choose'.
    When I put a form field with this help text:
    <?CHOOSE:?><?WHEN:ELMT_CATEGORY_CODE='SS'?>
    Did some research but cannot find why...
    -Bill

    Never mind, put the <?end choose?> in wrong position. Thanks

  • Element 'when' not found in 'xsl:choose'

    Hi,
    I'm trying to create a very basic choose / when /otherwise instruction in an RTF template.
    I have created 6 fields, with the following codes:
    <?choose:?>
    <?when: E.TYPE='I'?>
    * do something *
    <?end when?>
    <?otherwise:?>
    * do something else *
    <?end otherwise?>
    <?end choose?>
    I get the following error message when I try to preview the result:
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:514)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:192)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:156)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:916)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:869)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:204)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1535)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:925)
         at RTF2PDF.runRTFto(RTF2PDF.java:590)
         at RTF2PDF.runXDO(RTF2PDF.java:458)
         at RTF2PDF.main(RTF2PDF.java:237)
    Caused by: oracle.xdo.parser.v2.XMLParseException: Element 'when' not found in 'xsl:choose'.
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:782)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:564)
         ... 15 more
    Any help is greately appreciated.
    Spiffo

    Ensure that the code is correct in all 6 fields. Have you used the "Validate template" feature before previewing to see if you are able to get any more information?
    I can take a look at your template if you can send it to [email protected] Send me a sample xml file for testing purposes.
    Thanks

  • XML-22009: (Error) Attribute 'select' not found in 'xsl:value-of'

    Hello,
    I'm a long-time Siebel developer but novice to BIP, trying to enhance some complex rtf templates that an experienced xdo/bip developer (contractor) designed for us in the past, with a couple of new fields that have been added to the integration object.
    All templates and sub-templates receive 'no errors found' when using add-in tool selection of 'Validate Template'. Unfortunately we cannot utilize the 'preview' capability due to the way the sub-templates are called, so only way to test is to upload into server and attempt to run real-time.
    This results in UI error of SBL-OMS-00203, which when we dig into the xdo log file turns out to be:
    <Line 648, Column 88>: XML-22009: (Error) Attribute 'select' not found in 'xsl:value-of'.
    I have exported all templates and sub-templates into XSL-FO Style Sheet and looked at line 648 column 88, and none of them seem to correspond to this line/column combination (in fact most exports do not even go that high in lines).
    Googling 'XML-22009' hasn't proven to be of much help, so reaching out to the xdo experts in this forum.
    How are the line/column #'s determined in the xdo log output?
    I am pretty sure that it must be some issue with my 'Main' template, since none of the sub-templates have been changed (and the current version of the report, without the new fields incorporated, still runs fine from the UI). In the XSL-FO format export of the (modified, with new fields added) 'Main.rtf' file, line 648 places it right in the midst of a bunch of hex which corresponds to an imbedded image (which was also part of the existing template, no change there) and that line only has 65 columns (i.e. doesn't even go up to 88), so I'm questioning how valid the Line/Column information is in the xdo log error message.
    Any hints on troubleshooting this one would be greatly appreciated!
    Thanks & Regards,
    Katrina

    Hi,
    as I wrote in the inital message, we even left out the output method or used "application/pdf". The result is unfortunately always the same. And I still claim this is not a problem with the stylesheet itself, it has to do something with the mobile's environment.
    Something I didn't tell: we have 2 servlets in our application, 1 responsible for output in html and 1 in pdf. The .fo stylesheet passed to the 'html servlet' is parsed correctly (and shows the source code, because it does not know about fo and conversion to pdf), the .xsl stylesheet passed to the 'pdf servlet' raises same exception/same line. You might tell us that there is a problem with the 'pdf servlet', but once again: why in online it is working?
    Greetings and thanx very much for your precious time!

  • I want to add refworks grabit to my tool bar, when I try to install for firefox it won' t let me this is what I get: HTTP Error 404.3 - Not Found The page you a

    this is the complete error I get. I just installed firefox so that I can use this feature and now it is useless.
    Error Summary
    HTTP Error 404.3 - Not Found
    The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
    Detailed Error Information
    Module StaticFileModule
    Notification ExecuteRequestHandler
    Handler StaticFile
    Error Code 0x80070032
    Requested URL http://www.refworks.com:80/refgrabit/install.xpi
    Physical Path E:\RefGrabIt\install.xpi
    Logon Method Anonymous
    Logon User Anonymous
    Failed Request Tracing Log Directory C:\inetpub\logs\FailedReqLogFiles
    Most likely causes:
    It is possible that a handler mapping is missing. By default, the static file handler processes all content.
    The feature you are trying to use may not be installed.
    The appropriate MIME map is not enabled for the Web site or application. (Warning: Do not create a MIME map for content that users should not download, such as .ASPX pages or .config files.)
    If ASP.NET is not installed.
    Things you can try:
    In system.webServer/handlers:
    Ensure that the expected handler for the current page is mapped.
    Pay extra attention to preconditions (for example, runtimeVersion, pipelineMode, bitness) and compare them to the settings for your application pool.
    Pay extra attention to typographical errors in the expected handler line.
    Please verify that the feature you are trying to use is installed.
    Verify that the MIME map is enabled or add the MIME map for the Web site using the command-line tool appcmd.exe.
    To set a MIME type, use the following syntax: %SystemRoot%\windows\system32\inetsrv\appcmd set config /section:staticContent /+[fileExtension='string',mimeType='string']
    The variable fileExtension string is the file name extension and the variable mimeType string is the file type description.
    For example, to add a MIME map for a file which has the extension ".xyz": appcmd set config /section:staticContent /+[fileExtension='.xyz',mimeType='text/plain']
    Warning: Ensure that this MIME mapping is needed for your Web server before adding it to the list. Configuration files such as .CONFIG or dynamic scripting pages such as .ASP or .ASPX, should not be downloaded directly and should always be processed through a handler. Other files such as database files or those used to store configuration, like .XML or .MDF, are sometimes used to store configuration information. Determine if clients can download these file types before enabling them.
    Install ASP.NET.
    Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.
    Links and More Information This error occurs when the file extension of the requested URL is for a MIME type that is not configured on the server. You can add a MIME type for the file extension for files that are not dynamic scripting pages, database, or configuration files. Process those file types using a handler. You should not allows direct downloads of dynamic scripting pages, database or configuration files.
    View more information »

    That file might have moved to a different location on the server. I think you'll need to check with RefWorks support or your local IT department on why the install page links do not work.

  • I'm receiving error Boot Device Not Found and Hard disk not exist when I boot up my laptop

    I'm receicing the error Boot Device Not Found when i power on my HP G60-235DX laptop.  After following HP's recommended troubleshooting steps, I receive error Hard disk not exist.  Hmmmm....that's a little concerning.  My guess is I need a new hard drive?    I have the 17 recovery disks I made when I setup this laptop, however I'm not sure if they will resolve this issue.  Any suggestions?

    One of 3 things has happened, listed from most likely to least likely
    1. Hard drive has died, replace it with one of the same size or larger, then use the HP recovery discs to re-install windows.
    2, The motherboard has serious problems. (Replace the notebook)
    3. The hard drive cable that connects it to the motherboard has somehow failed, not very likely. (replace the cable)
    Replace the hard drive with a new one and use your recovery discs to get Windows back on it.
    Here is your service manual, will show you how to replace the hard drive
    http://h10032.www1.hp.com/ctg/Manual/c02985882.pdf
    Recovery Instructions for Vista
    Recovery Instructions for Windows 7

  • When ever I reboot my device, I get an error message that says, "runtime error info.plist not found". What is this, how does it effect my ipod and how do I correct this error?

    I have an ipod touch 64gb. Lately, I discovered an error message on the lockscreen that says "Runtime Error Info.plist not found". What is this, will it effect my ipod, how does it effect my ipod and how do I correct the error? (I see the error message when I power up my ipod and when I reboot).

    Follow  this article:
    How to restart the Apple Mobile Device Service (AMDS) on Windows

  • When I Update My Nano, I get error message, "file not found"

    When I Update My Nano, I get an error message, "file not found, cannot update iPod". I have looked through the manual and tried reinstalling the iTunes program but it still won't update my iPod with music or pictures. PLease help.

    Try these basic troubleshooting steps one at a time.
    The Five Rs.

  • When I try to update LR I get an error message Application not found

    When I try to update LR I get an error message "Application not found".
    When I try Help in LR it can't be found.
    What is wrong?

    Talked with Adobe support. Told me to go to Cloud app and log out, then log
    in again and then update. Worked fine for me. Hope this helps!
    Best regards,
    Fredrik Moell
    Tomatis New Zealand
    www.tomatis.co.nz
    A division of Your Amazing Health Ltd
    54 Fancourt Street, Meadowbank, Auckland 1072
    0800-TOMATIS (866 2847)
    Personal 021-1721 930

  • ERROR "Group Public not found" when I run project TutWD_FlightList

    Hi everyone,
    I created Web Dynpro project TutWD_FlightList exactly as tutorial "Creating a Web Dynpro Application Accessing ABAP Functions ".
    I chose "Data type"  for "Dictionary Meta Data" and "Destination type" for "Load-balanced connection",  when I  clicked test connection, the error information as follow:
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM  TYPE=B MSHOST=sapserver GROUP=PUBLIC R3NAME=I01 MSSERV=sapmsI01 PCS=1 <b>ERROR       Group PUBLIC not found</b> TIME        Thu Mar 01 16:57:35 2007 RELEASE     640 COMPONENT   LG VERSION     5 RC          -6 MODULE      lgxx.c LINE        3531 DETAIL      LgIGroup COUNTER     2
    It seems that the nature reason is "<b>Group Public not found</b>".
    But I had created the "Public" group with transaction SMLG in related R/3 system,
    and I can logon R/3 via "Public" group both on my laptop and on WebDynpro server. So I think "Public" group is ok.
    The error information for "Ping" is :
    Failed to ping JCo destination 'WD_FLIGHTLIST_MODELDATA_DEST'.
    Is there any friends meet the same problem ?
    Could you please give me any suggestion ?
    Thanks !
    Best Regards,
    Jianguo Chen

    jianguo,
    Strange... Is Status field for PUBLIC is ok (green) in SMLG?
    If you just want to run tutorial try group SPACE -- as far as I know it always exists.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • SSIS package Corrupted - Connection element is not found - Visual Studio 2008

    Some body help me...
    last week my senior give me a SSIS package, but when I open in visual studio 2008 there is pop up like this.
    TITLE: Microsoft Visual Studio
    There were errors while the package was being loaded.
    The package might be corrupted.
    See the Error List for details.
    BUTTONS:
    OK
    and this is the description of
    Error    1    Error loading KIBB_INVC_IS.02.dtsx: The connection "{A9C72380-F326-44BF-A7CB-B8C7E9103F01}" is not found. This error is thrown by Connections collection when the specific connection element is not found.
         C:\Users\CYH\Documents\Visual Studio 2008\Projects\IS\IS\KIBB_INVC_IS.02.dtsx    1    1    
    Error    10    Validation error. SheetValue Insertion Error Log Execute SQL Task: Connection manager "{A9C72380-F326-44BF-A7CB-B8C7E9103F01}" does not exist.      KIBB_INVC_IS.02.dtsx    0  
     0    
    Error    11    Validation error. SheetValue Insertion Error Log : There were errors during task validation.      KIBB_INVC_IS.02.dtsx    0    0    
    Error    12    Validation error. Data Flow Task: SCB_IB_IDS 05: The connection "{A9C72380-F326-44BF-A7CB-B8C7E9103F01}" is not found. This error is thrown by Connections collection when the specific connection element
    is not found.      KIBB_INVC_IS.02.dtsx    0    0    
    if some body know this problem, please help me to resolve my problem :(

    It is due to a connection manager being deleted.
    Oftentimes fixable by introducing it back. Sometimes the package even runs successfully even w/o it.
    But if you can create a new package anew.
    Arthur My Blog

  • CS4 internal error 11 Media not found, for menus?

    Hi,
    I have been attempting to burn blu ray with menus from the Encore Library. I keep getting an error when the motion menus are being rendered at the beginning of the disk build process. The error makes reference to the menu at hand and an "Internal Error 11" Media not found. I tried changing menus and I even tried leaving out the chapter selection menus so that there were no "animated buttons". I am not sure what to do, maybe Ill try reinstalling the encore library. I know that I have to go to bed for now and I will not have time to work with it until around 5pm.. Does anybody know what is going on here?
    Windows 7 Pro
    Intel i7 920 2.66Ghz
    6Gb Triple Channel DDR3 1600mhz
    ASUS P6T Motherboard
    BFG inVidia geForce 260GTX OC
    MOTU 896mk3 audio interface on a dedicated PCI-E 1394 card with TI Chipset
    Delta 1010 PCI audio interface
    LG 8X BluRay Internal Burner

    Shouldn't be a library problem.
    Did you apply many "corrections" to the project?
    If yes, try to clear all the files kept in "AuthorScriptHDMVSessions" folder (your Encore project folder\"name of the project"\AuthorScriptHDMVSessions).
    You can clear all the .xmp files in your Encore project folder.
    When you'll re-run Encore, it will take more time to re-built missed files, but everything will be cleaner.
    Hope this helps
    Ciao
    Giorgio

  • Spry.Effect ERR: Element "undefined" not found

    http://demiurgical.fluctuation.net/development/test.html
    Hi guys,
    I used Spry Data, Tabbed Panels, and the very helpfull Tabbed
    Panels Extension that Kin provided. It works fine on both Firefox
    and IE, however, IE6 gives me an alert box of "Spry.Effect ERR:
    Element "undefined" not found 4 times but still working.
    How can I get rid of this?
    Thank you again,
    John

    Looking at Retrospective's code in test.html, I see that the
    error is due to the fact he had a script block in his region:
    <script type="text/javascript">
    <!--//
    var testtab = new Spry.Widget.TabbedPanels("testtab", {
    interval: 3000 });
    testtab.start();
    //-->
    </script>
    That executes immediately when the page is loaded, even
    before the region is processed. To get rid of the problem, all that
    has to be done is remove the script block and move its code into a
    region observer so that it gets exectued any time the region markup
    is re-generated. Here's how it should look:
    <html>
    <head>
    <script src="SpryTabbedPanels.js"
    type="text/javascript"></script>
    <script src="SpryTabbedPanelsExtensions.js"
    type="text/javascript"></script>
    <script src="xpath.js"
    type="text/javascript"></script>
    <script src="SpryData.js"
    type="text/javascript"></script>
    <script src="SpryEffects.js"
    type="text/javascript"></script>
    <link href="SpryTabbedPanels.css" rel="stylesheet"
    type="text/css" />
    <script type="text/javascript">
    <!--//
    var dsTest = new Spry.Data.XMLDataSet("test.xml",
    "Test/TestOne");
    dsTest.setColumnType("name", "html");
    Spry.Data.Region.addObserver("FeatureBoxHome", {
    onPostUpdate: function()
    var testtab = new Spry.Widget.TabbedPanels("testtab", {
    interval: 3000 });
    testtab.start();
    //-->
    </script>
    <title>Test</title>
    </head>
    <body bgcolor="#FFFFFF">
    <div id="FeatureBoxHome" spry:region="dsTest">
    <div id="testtab" class="TabbedPanels">
    <ul class="TabbedPanelsTabGroup">
    <li spry:repeat="dsTest" class="TabbedPanelsTab"
    tabindex="0">{name}</li>
    </ul>
    <div class="TabbedPanelsContentGroup">
    <div spry:repeat="dsTest" class="TabbedPanelsContent"
    style="display: block;"> <a
    href="{feature_url}">{title}</a> <img src="{photo}">
    </div>
    </div>
    </div>
    </div>
    </body>
    </html>
    --== Kin ==--

  • MDIS ValueX XML Structure, element TEXT not found in xml schema

    When you extract ECC Contract through MECCM using port ERP Contract Data Transmission, if your mapping isn't correct 2 exception types are created: StructuralX or ValueX (and ImportX but I haven't seen this type of exception yet).
    Anyone noticed that the structure of the XML messages are actually different? The XSD for structuralX files are the same as the files placed in the "ready" folder, where as the XSD for the valueX files are DIFFERENT, and contain a tag called <TEXT>.
    This raises an issue when we're trying to handle exceptions in Import Manager using the type Port.  We get error "Logon Error: Source file does not conform to XML Schema. Element <TEXT> not found in xml schema".
    We can process exceptions in the structuralX folder, but not in the valuex folder because the xml file structure in the valuex folder is different.
    Just wondering if anyone else has had this issue or has resolved it.  We will open message with SAP.
    Thanks.

    Hello
    What is your MDM version ?
    this issue happened in old MDM 7.1 versions but was fixed in SP-2 unless you mapped Clone fields and in this case the fix is a bit later.
    In MDM 7.1 the latest builds of SP-2 and SP-3 should have the fix for all issues. But if you use MDM 5.5 then some issues regarding XSD conversion for exception where not addressed due to technical issues.
    The workaround for MDM 5.5 (If you use a late build of SP-6 Patch-4 or SP-6 Patch-5)  is to use the original file to fix the exception and not the file in the exception folder.
    Please notice that when you have Structural exception then all the Source XML file will go to the Exception folder.
    But in case of Value Exception - The source XML file will be dropped in the archive folder and another XML file containing VXR's (Virtual Extended Records) will be dropped in the exception folder, Therefore will have a different structure.
    Hope it helps.
    Thanks.
    Best Regards.
    Yaron.

  • UI Error 'Method clone not found in class java.lang.Class'

    When attempting to view an application window in the User Interface error I receive the error 'Method clone not found in class java.lang.Class'. The window will run correctly when I execute the application and other objects on the window are displayed correctly in the UI editor.
    Within the window class I have used the following line of code to clone a reference list of values that is loaded just once when the application starts up: -
    dsDefaultComboBoxModel priorityComboBoxModel = (dsDefaultComboBoxModel) dsReferenceLuLists.priorityComboBoxModel.clone();
    And then this line of code to create a combo box: -
    dsGuiComboBoxRefelu priorityComboBox = new dsGuiComboBoxRefelu(priorityComboBoxModel,ReportWindowSql.priorityCodeBuffer);
    And then later on the combo box is displayed.
    detailsArea.add(priorityComboBox, new XYConstraints(250,10,dsGlobalVariables.gvFieldWidthLarge,-1));
    'dsDefaultComboBoxModel' is defined as follows: -
    public class dsDefaultComboBoxModel extends DefaultComboBoxModel implements Cloneable
    public dsDefaultComboBoxModel()
    public Object clone()
    try
    return super.clone();
    catch ( CloneNotSupportedException e )
    // Shouldn't happen.
    throw new InternalError( e.toString() );
    This error occurs using the latest v903, but was also present in previous versions of JDeveloper.
    At the moment this means that I did to execute the window in order to see all of the GUI elements that are displayed. As on option I could use something other than the clone method, but it seems to be such a nice way of copying the static reference lists.
    Thanks for any help.

    Hi Darren,
    My guess is that since DefaultComboBoxModel doesn't implement Cloneable, you can't call super.clone(). Does your code compile?
    Later.
    Dennis

Maybe you are looking for

  • 'Ñ' Problem in Character Mode Report

    i made a report in Character Mode, using PRT. The problem is, when i generate report directly to the Dot Matrix Printer it didn't print the 'Ñ' character in my output, a corresponding ASCII character is printed instead. What could be the problem in m

  • Hi where to specify in XI about the target system

    Hi! I have a j2EE application(servlet) that receives XML file from XI. Where should i specify in XI about this? Its urgent. Your help is greatly rewarded. Thanks

  • Connecting a DVR via firewire

    according to wikipedia, there is a Firewire 400 port on every HD DVR produced since 2004. with that being said, what would I need to do in order to be able to download recorded media from my DVR to my mac?

  • Problem viewing data

    Hello, Still trying to get things woeking, but now I got stuck again. I can't get view my data, each time I get this error: "Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database

  • SAP memeory Structure

    Hi, 1. What is SAP memeory Structure? 2. While sending 5lacs of data through BDC what are the problems we will encounter? 3. How to Simulate production client when we are sending 5 lacs of data?. Pls help me out. Thanks & Regards