Xsl:attribute error in oraxsl command line

Hi Forum,
I'm getting error XML-22047 when trying to use xsl:attribute.
Here's the test XML I'm using:
<?xml version="1.0" encoding="UTF-8"?>
<root>
   <level1>Test-Content</level1>
</root>
now, this is the stylesheet I'm using:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:mdm="schema.condes.org/mds/meta" version="2.0" xml:space="preserve">
   <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
   <xsl:template match="/">
      <xsl:apply-templates/>
   </xsl:template>
   <xsl:template match="root">
      <Foo>
         <xsl:attribute name="test">testing attribute</xsl:attribute>
         <xsl:apply-templates/>
      </Foo>
   </xsl:template>
</xsl:stylesheet>
If I run this, it throws error XML-22047, invalid instantiation of 'attribute' in 'element' context (translated from the German error message...)
Has anybody seen this and could advice me some help?
Thanks, Jürgen

Use xsl:element instead of explicit element.
<xsl:template match="root">
<xsl:element name="Foo">
<xsl:attribute name="test">testing attribute</xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>

Similar Messages

  • Oraxsl command line utility - xslt transform difficulty

    I am having trouble understanding the documentation for the ORAXSL command line utility interface, as follows:
    I have two sheets [XSLT transformation sheets], token.xsl and loop.xsl, which I am trying to transform into a single xsl sheet using ORAXSL command line.
    token.xsl transforms a string of comma-separated values into single tokens (<value> elements, each of them contains one value).
    loop.xsl expands special iteration elements (<loop:for> and <loop:while>) into recursive template calls.
    Used together, I can parse a node containing comma separated values into an xml document with each value in its own node.

    Hi
    This is very simple (to the best of my knowledge)
    sqlplus userid/password@hoststring @pl_sql_file_name.ext [arg1] [arg2] [arg3]
    sqlplus - to invoke oracle
    userid - is the login id into oracle db
    password - is the password
    hoststring - is the ORACLE_SID
    pl_sql_file_name.ext - is the pl_sql file you wish to run
    arg1, arg2, arg3 - the arguments that you may be refering in the pl_sql script. arg1 refers to &1 in your script and arg2 refers to &2 in your script and arg3 refers to &3 in your script.
    Have fun!
    Good Luck
    null

  • Error message: "invalid command line argument" while lodaing itunes

    I'm trying to load Itunes onto a computer that already has a version of itunes on it. I get a message that says "error: -1639 invalid command line argument" Does anyone know what this means? Does this mean I can't load itunes onto a computer that already has itunes on it?
    Also, I was able to load itunes on my laptop, but My ipod Icon is not appearing anywhere, not in itunes, not in explorer, not in my computer. I am, however, able to transfer music automatically when I plug the Ipod into the laptop. I have created several playlists and they have transferred over to the ipod as playlists. Any ideas why I can transfer despite not being recognized anywhere on the computer?
    Last thing is, I have plugged the Ipod into three different computers with itunes on them, and the ipod does not show up in the source list.
    I'm somewhat perplexed by all of this. Any help or insight would be greatly appreciated
    Dell   Windows XP Pro  

    hiya!
    "error: -1639 invalid command line argument"
    hmmm. folks typically only get that error if they are installing from removable media (such as a CD), although i have seen it happen if someone tries to install into the "recovery partition" of certain makes of PC.
    if you download and save an installer to your C drive and run the install from there, do you still get the 1639?
    iTunes 6.0.4.2 Installer
    love, b

  • ERROR: -1639 INVALID COMMAND LINE ARGUMENT

    Trying to install software for Shuffle that Santa brought and get this error messsage...
    "Error: -1639 invalid command line argument. Consult the windows Installer SDK for detailed command line help."
    Install stops at this point.
    SOMEONE HELP... My kid is chomping at the bit !
    Thanks.

    Ok I'll do some more searching but I found something in the community forums.
    APPSearch can not return this data into a property, so instead, for some unspeakable reason, returns a value of Null, follwed by another Null. This means that the property is created, and populated with two null characters. Bad news if the property also happens to be a PUBLIC property. All public properties are passed as part of the command line sent in a stream to the background installer process by the Execute Action. Since this stream now contains a double null value in a property, the stream is prematurely terminated. This creates an invalid command line, and thus the 1639 error.
    This user solved it by using the MSi Cleanup installer util.
    EDIT: A little more info...
    This problem is almost impossible to detect through the MSI log files since our friends at Microsoft chose to limit the length of any line in the log. It is impossible to get a dump of the full command line that generates this error.
    EDIT2:Note that error 1639 only ocurrs when the install package is run from removable media. When the package is run from local storage, the behavior is far more obtuse. The background install process, failing to receive a complete command line, is forced to run as if there had been no UI session, which in turn causes the APPSearch action to run again as if the install was running in silent mode. This causes re-evaluation of all properties a second time, destroying the feature selections made in the UI session, and also forcing the install to run under user credentials instead of elevated, even though AdminUser, ALLUSERS and Privleged properties are set. This is a very serious error that causes total failure of the installation.

  • Setup error 530 invalid command line!!!!??

    hi guys,
    i have the following error in my addon installation process
    <i>"Setup error 530 invalid command line"</i>
    all my files .ard and setup.exe was generated correctly but whene i try to install my addon
    image capture
    http://aycu19.webshots.com/image/13218/2000674717812036508_rs.jpg

    Hi Manza,
    What are you using to create your setup?
    Have you tried the B1DE package? It contains 2 wizards to automatically create the setup of your addon together with the .ard file.
    You can try to use it at least to use it as a sample of what is needed for your setup.
    Are you setting something in the .ard Command Line arguments for installing/deinstalling your addon? Maybe the error is talking about it...
    Regards
    Trinidad.

  • JAVA_HOME path error in hadoop command line

    Hi All,
    Am new to hadoop, i did the hadoop installation in windows by following the link as follows
    http://www.codeproject.com/Articles/757934/Apache-Hadoop-for-Windows-Platform
    but here when i run any thing from hadoop command line am getting the following error
    C:\hadoop-2.3.0\bin>hadoop version
    The system cannot find the path specified.
    Error: JAVA_HOME is incorrectly set.
           Please update C:\hadoop-2.3.0\conf\hadoop-env.cmd
    i had given a paths like this.
    and upto bin in path system variable
    The hadoop command line error is as follows, the path it is showing to update JAVA_HOME path is not there in my hadoop directory i.e conf folder is not there
    Please help me to resolve this.

    Hi
    This forum is specific to Microsoft Azure HDInsight service. It does not support the other ways through which you can install Hadoop on Windows as well (Your scenario is also in that category). I suggest you post your questions in the codeproject forum from
    where you got the installation steps.
    Regards.
    Debarchan Sarkar - MSFT ( This posting is provided AS IS with no warranties, and confers no rights.)

  • Error message in Command line (cannot mount database in EXCLUSIVE mode)

    Hello Experts
    I'm new in Oracle and trying to connect to my database though SQL command line. After I login as SYS I user I get the message that 'connected to idle instance'. Then I use “STARTUP” to connect to database. Now from my understanding it should mount the database and open it as well. But it does'nt happens.Instead I get the message 'cannot mount database in EXCLUSIVE mode' . I'm not sure why it can't mound the database and what should I do to make it working. Please can somebody show me how to make it working again. Here are the details about my problem
    Enter user-name: SYS as SYSDBA
    Enter password:
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 595591168 bytes
    Fixed Size 1220748 bytes
    Variable Size 301993844 bytes
    Database Buffers 285212672 bytes
    Redo Buffers 7163904 bytes
    ORA-01102: cannot mount database in EXCLUSIVE mode
    Thanks a lot in advance.

    Thank you so much for both of you. I've checked everything. All looks fine to me and then i tried to connect though SQL and it worked. Now what I've notice that this time I didn't start Enterprise Manager only I started the listner and then start sql it worked. Does this means that I can't use both SQL and EM at a time together?

  • Error in mail command line

    when i enter this command: mail [email protected], a error return as this:
    General Warning: could not get server configuration in ldap, using cached configuration information
    my server is iMS 5.2 bundled, anyone could help me?

    Sounds like you have installed Messaging more than one time.
    Assuming you're on some form of Unix, look at the
    /etc/msregistry.inf
    file, and edit it so that you only have the active instance of Messaging in it.
    Or, set the environmental varialbe
    CONFIGROOT
    to point to the configuration directory of your running instance. by default
    /usr/iplanet/server5/msg-<name_of_your_server>/config
    Either should work.

  • Create captive runtime error in adt command line

    Hi i go to
    cd C:\Program Files\Adobe\Adobe Flash CS6\AIR3.2\bin
    adt -package -keystore D:\Games\MAFIL\VSS\Production\Proto\tisApk.p12 -storetype pkcs12 -target bundle D:\fromexamplarr\9thmarch\MAFIL_GoldAppraisalGame D:\fromexamplarr\9thmarch\GoldAssessmentGame-app.xml D:\fromexamplarr\9thmarch\GoldAssessmentGame.swf D:\fromexamplarr\9thmarch\docs D:\fromexamplarr\9thmarch\assets
    file ...  .swf is not      relative to directory ..\bin
    also i need to add complete folder for resources and doc folder for all the icons.
    how do i do this.
    Please help.

    Try it like this:
    cd D:\fromexamplarr\9thmarch
    "C:\Program Files\Adobe\Adobe Flash CS6\AIR3.2\bin\adt" -package -keystore D:\Games\MAFIL\VSS\Production\Proto\tisApk.p12 -storetype pkcs12 -target bundle MAFIL_GoldAppraisalGame GoldAssessmentGame-app.xml GoldAssessmentGame.swf docs assets

  • Robot Test fails  with error message Invalid command line: process must be

    public class test
        public static void main(String [] args) throws Exception
            new java.awt.Robot();
    }I'm using SLES Linux.
    Is there any problem in my machine ?
    How Robot tests generally works ?
    Thanks !

    try:
    public class test{
        public static void main(String [] args) {
            try{
               java.awt.Robot myRobot = new java.awt.Robot();
            }catch(Exception e){
              System.out.println("It didn't work");
    }from the API:
    Note that some platforms require special privileges or extensions to access low-level input control. If the current platform configuration does not allow input control, an AWTException will be thrown when trying to construct Robot objects. For example, X-Window systems will throw the exception if the XTEST 2.2 standard extension is not supported (or not enabled) by the X server.

  • Command-line parameter won't work

    I am trying to use the oraxsl command-line processor to pass a parameter to a stylesheet. All the examples I have found for this format (courtesy of Steve Muench in various mailing lists) show the same format I am using (i.e. oraxsl -p name="Steve" datadoc.xml transform.xsl),
    yet the processor invariably replies "oraxsl: Missing <param list> after -p". To which I can only reply, "There are none so blind as those who will not see." I'm using Windows XP. Has anyone else had a similar experience?

    I have that problem using the XML Java route. The code works but the <xsl:parm name="p"/> does not get populated with the value passed on the querysttring of th ecalling jsp.
    If i hard code the value of p with text then the xslt runs properly.
    I will try the oracle command line function and see what it does as I did not know about it until today.

  • Command line import

    I am getting an error on my command-line import from SQLPLUS.
    I entered the schema_owner angelac/password@xe @f108.sql
    and I get the following error:
    APPLICATION 108 - Lease_Facility_Inspection
    Set Credentials...
    Illegal security group id value for this schema.
    Check Compatibility...
    API Last Extended:20050501
    Your Current Version:20050501
    This import is compatible with version: 20050501
    COMPATIBLE (You should be able to run this import without issues.)
    Set Application ID...
    begin
    ERROR at line 1:
    ORA-20001: Package variable g_security_group_id must be set.
    ORA-06512: at "FLOWS_020100.WWV_FLOW_API", line 56
    ORA-06512: at "FLOWS_020100.WWV_FLOW_API", line 296
    ORA-06512: at line 4

    Angela,
    I am not understanding the DB user vs. Application Users.
    Are they the same?They are different concepts. The application user is the user that the application authenticated. The record for that user's account may be a database schema (user) or it may be a row in your own users table or it may be an entry in an LDAP directory or it may be something else. It's up to you as the developer to decide how you authenticate users as part of your application design.
    Is it because I am a developer that I get the DB login page? which is from the DB_users view ??I don't know what you're seeing exactly or what you're asking.
    When I run the application, I am taken to another login page.Another login page distinct from what other login page?
    Where are these users stored? or are they the same as the DB_Users?See above.
    Also, does all of the application users need a DB user account?No, as explained above. Your app can use database account credentials as the authentication method if you want that in which case each application user would need a database account.
    Read the "recap" section in my post here, especially after step 8 and see if that helps: Re: Priveleges to create procedures/functions in schemas
    Scott

  • XSL-1009: (Error) Attribute 'version' not found in 'HTML'

    Hi,
    I've got the following problem: oracle.xml.parserv2.XSLException
    <Line 1, Column 7>: XSL-1009: (Error) Attribute '{http://www.w3.org/1999/XSL/Transform}:version' not found in 'HTML'.
    and I wanted to know what are its origins and what to do to go around, knowing that:
    - we run a java application on an oracle 9iAS and it works fine !
    - we run the same application on an oracle web-to-go server and it gives this message on the client when trying to put
    - the mobile server 'java environment' is a little bit never (version) than the online environment, both servers (9ias an mobile) run on the same machine (mobile is never -> impact on client environment? Installs run under jre 1.3.01)
    - we have an xml document (DOM) and an .fo stylesheet (file/url), so no html for output! Where comes it from? The <xsl:output method="html"> has even been removed and tried with method="application/pdf", no change.
    - the function XSLProcessor.newXSLStylesheet raises this exception; to make it at least run on online environment, we used the .jar file from JDevelopper 9.0.2.822 (this .jar is used in JDev, on 9ias and mobile client)
    - the output file (via apache's fop) shows correctly in the online version, but fails the create/use of the stylesheet (tried stylesheet with xml data for output and a generique 'Hello World' .fo for pdf output, both fail)
    - the .fo starts with <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
    - we even tried xsl:version="1.0" and no version at all
    - the same XML parsed with an .xsl for html output works fine, in mobile, the attribute "http://www.w3.org/1999/XSL/Transform" does not show up as an error
    I guess we have a version or configuration conflict, but what exactly could it be? If you need some more version numbers, just let me know.
    Thanx very much for any help!

    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!

  • XSL-FO Stylesheets (Oracle XSLT processor via command line)

    How does one go about editing BIP XSL-FO stylesheets converted from the MSWord plug in by using external tools?
    The converted files have many, many calls to Oracle functions that are unrecognized by the editing tools.
    We are using Stylus Studio and are getting errors on functions calls such as:
    <xsl:variable name="_XDOXSLTCTX" select="xdoxslt:set_xslt_locale($_XDOCTX, $_XDOLOCALE, $_XDOTIMEZONE, $_XDOCALENDAR, concat($_XDODFOVERRIDE,' ',$_XDOCURMASKS,' ',$_XDONFSEPARATORS))"/>
    This is but one example of course. There are many calls in each template and they are quite varied.
    Is there a way to "register" these with the tools so that they can call them (via tnsnames?). Even to having them ignored would be preferable to having the previewer completely fail.
    Scott

    Hi Scott.
    there's a JavaAPI which you can use. So it's not really a command line interface, but perhaps it can fullfill you requirements.
    Regards
    Rainer

  • XSQL DTD, XSQL command line, XSL parameters

    I have three quick XSQL questions:
    1. Is there a DTD available for XSQL? I'd like to feed it to Emacs' PSGML mode (http://www.lysator.liu.se/projects/about_psgml.html). What do you other Emacsers use to edit XSQL and XSL files?
    2. XSQL is working fine under Apache/jserv, but the command line isn't finding my DB connections as defined in XSQLConfig.xml:
    XSQL-004: Could not acquire a database connection named: lcbean@isis
    Does this mean XSQL couldn't find the connection description, or couldn't connect to it after finding it? It does use CLASSPATH to locate XSQLConfig.xml, right?
    3. I'm trying to use parameters in an XSL stylesheet as follows:
    <html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
    <xsl:param name="store_code" select="'999'"/>
    <head><title>Test</title></head>
    <body><p><xsl:value-of select="$store_code"/></p></body>
    </html>
    But I keep getting:
    XSL-1031: Variable not defined: 'store_code'
    What am I missing?
    null

    [list=1]
    [*]No. Since XSQL action elements are allowed to appear anywhere in any well-formed XML document, you cannot really describe this in a DTD.
    [*]This means you put a connection="lcbean@isis" attribute on the document element of your XSQL page, but that it could not find a <connectiondef> for that name in XSQLConfig.xml (which is found successfully if it got this far!).
    [*] See Section 11.5 in the XSLT 1.0 specification. <xsl:param> must appear immediately at the top of a template before any literal result elements. This means that <xsl:param> cannot be used in a "simple-form" stylesheet. You can either use <xsl:variable> instead, or you'll have to change to the full-form of the <xsl:stylesheet> and place the <xsl:param> at the top-level of the stylesheet, outside of any <xsl:template>.
    [list]

Maybe you are looking for

  • Tv shows "music videos" still in library but do not transfer when syncing

    I have 2 music videos in my "tv shows" category on the iPod. When I sync the iPod, they do not transfer over. I can download them again and then I have them. I have done this 3 times. Now I have 3 of each of these two videos in my "tv shows" part of

  • Playing video clips

    I have been recently finding that some vid clips wont play with my realplayer or quicktime? At one time, someone had given me a great suggestion of a player that plays most every type of clip but for some reason I cant find that player now. Any tips

  • Disable delete icon in the Materials requirement form

    hi can anyone tell me how to disable the delete icon in the materials requirements form, using form personalization... reply thanks & regards anandc

  • ITunes is pink under Remote Desktop

    I can't change my remote desktop to 32-bit, it's locked to 16-bit. I have a headless media computer hooked up to my main AV rack, I remote desktop into it to do any configuration needed. It's really jarring to see the hot-pink iTunes staring at me wh

  • Changing business content object

    Hi, If i define a hierarchy under 0material(i am in dev bw),later will i be able to just use the object without the hierarchy underneath?(if i want just 0material in a report) By doing so am i going to disturb the 0material property in any way? Thank