Xsl:element: generate name of element dynamic

Hi everybody,
in the target structure I have to create elements dynamically.
But this does not work:
     <xsl:template name="process-message">
          <!-- params: pattern, role -->
          <xsl:variable name="ELEMENTNAME">
          <xsl:value-of select="anyNode"/>
          </xsl:variable>
          <xsl:element name="($ELEMENTNAME)"> // HERE IS THE ERROR
               <xsl:apply-templates mode="text"/>
          </xsl:element>
     </xsl:template>
Any ideas?
Regards Mario

Hi Prateek,
thanks.
Does not work.
Regards Mario

Similar Messages

  • xsl:if test on the element name of the following sibling?

    Hi all. I need to test whether the following sibling of the reference node, is a certain element.
    How can I do it? I need something like
    <xsl:if test="following-sibling='br'">
      <fo:block space-after="10pt">
    </xsl:test>I want XHTML
    elements to become <fo:block>s for FOP, but obviously, the first one just breaks a line, so it should have no "space-after", but subsequent ones leave blank lines, so need 10 (or whatever) points..
    Thanks!

    More delving around got me:
    name(following-sibling::*[position() = 1])For the name of the following element.

  • Accessing Element's name in Message mapping

    Hi,
       I need to Access the Element's name in Message mapping (Using graphical tool or in user defined function).
    For Example:
    Element: <Company_Name>XYZ Co </Company_Name>
    I need to access the Element's name(i.e.)<b>"Company_Name"</b>. So that I can map it as
    <Element>Company_Name</Element>
    <Element_Value>XYZ Co </Element_Value>
    in the target message.
    Kindly provide your inputs.

    Hi Santhosh,
    I am not sure if this can be done using your Graphical Mapping, but this is possible using JAVA mapping. Your SAX and DOM parsers for JAVA mapping provides methods like getChildNodes, getElementName using which you can get the name of the element.
    Check this link for the methods available for Java Mapping,
    http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/package-summary.html
    I think the same can also be done using XSL mapping. Though, I am not sure what method should be used for the same.
    Hope this helps,
    Regards,
    Bhavesh

  • I have downloaded Photoshop elements 5.0 to a new PC.  I recieve error message: "Your Adobe Photoshop Elements user name, organization, or serial number is missing or invalid. The application cannot continue and must now exit."

    I was referred here by customer service.  I have downloaded Photoshop elements 5.0 to a new PC.  After accepting the agreement I receive an error message saying  "Your Adobe Photoshop Elements user name, organization, or serial number is missing or invalid. The application cannot continue and must now exit."  There is no place to enter the serial number.

    All your pictures will remain safe even after uninstalling the program. Your pictures are saved to your system in form of catalog present at C:\ProgramData\Adobe\Photoshop Elements\Catalogs\<your catalog><br />When you reinstall the program you can open this catalog and view all your photos again.

  • HELP ASAP!! PSE5 "elements user name organization or serial number is missing or invalid.  thsi application cannot continue and must now exit

    HELP!!!!  I am a graphic designer I LOVE my version of Photoshop elements 5... I am also a Mom of two who depends on my party supply business as my only income currently!!!! 
    Upon opening to work on a party supply order DUE TODAY for a kid's first birthday I got this ERROR MESSAGE:
    "Your adobe photoshop elements user name organization or serial number is missing or invalid.  This application cannot continue and must now exit"  And then closes.....
    I don't know where my disc is to uninstall/reinstall since I got this program Oh say 10 years ago....  WHAT DO I DO!!?  I am in complete PANIC mode!
    Anyone?! Chat said they couldn't help me it's too old?!?!  HELP

    Hello ...Mom,
    here you will find (if stored at Adobe) "General infos about your Adobe Account" https://www.adobe.com/account.html. To see what Adobe has saved about your serial number, please have a look there: http://helpx.adobe.com/x-productkb/global/find-serial-number.html.
    On the other hand you could use a non Adobe program, like
    Belarc Advisor - Free Personal PC Audit, for software, hardware and security configuration information on your computer.…
    If necessary and for further questions click through http://helpx.adobe.com/contact.html and if "open" please use chat, I had the best experiences. I quote from Adobe's employee Preran: The chat button is activated as soon as there is an agent available to help.
    Good luck!
    Hans-Günter

  • How to find out query name using Elements of the query builder.

    Hi SDNers,
    how to find out query name using Elements of the query .
    thanks,
    satyaa

    Hi,
    For having a look at the relation between BEx tables,check the link below:
    http://wiki.sdn.sap.com/wiki/display/BI/ExploretherelationbetweenBEx+Tables
    -Vikram

  • Help in retrieving the element attribute name and value..

    Hi have to retrieve the attribute name and value from the element.....
    requirement is like this
    <ws:GetRightNowProductViewByDivisionResponse xmlns:ws="http://ws.sage.co.uk/">
    <ws:GetRightNowProductViewByDivisionResult ProductID=" " RightNowProductView=""/>
    </ws:GetRightNowProductViewByDivisionResponse>
    i should get all the element attbutes names as attributes in above mentioned format ..using xquery...
    here is the respone ....
    <sage:sageRequestResponse xmlns:sage="http://www.sage.com">
    <env:EaiEnvelope xmlns:env="http://www.sage.com/Envelope">
    <env:Domain>string</env:Domain>
    <env:Service>RightNowBroker</env:Service>
    <env:UserId>string</env:UserId>
    <env:OperationName>GetRightNowProductViewByDivision</env:OperationName>
    <env:Payload>
    <ws:GetRightNowProductViewByDivisionResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.sage.co.uk/">
    <xs:schema id="NewDataSet" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="RightNowProductView" msdata:UseCurrentLocale="true">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="RightNowProductView">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="ProductId" type="xs:short"/>
    <xs:element name="Product" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="4000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
    <xs:selector xpath=".//RightNowProductView"/>
    <xs:field xpath="ProductId"/>
    </xs:unique>
    </xs:element>
    </xs:schema>
    <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"/>
    </ws:GetRightNowProductViewByDivisionResult>
    </env:Payload>
    </env:EaiEnvelope>
    </sage:sageRequestResponse>

    Hi
    Just as an aside to the comments above, a scenario we see occasionally is where a desk provides an internal function (e.g. a helpdesk) and you really just want to get the name display (as seen on the handsets) onto the CAD display.
    You can do this by  doing a reverse lookup over HTTP against CUCM. There are a number of posts around, these should get you started :
    https://supportforums.cisco.com/thread/2065114
    https://supportforums.cisco.com/message/3024617
    A couple of notes:
    - It looks up against the directory, NOT the actual calling line. So you can add stuff to the directory to get external callers to show up by name, but should expect the unexpected when you have shared lines (e.g. multipel directory entries with one tel number for whatever reason)
    - If you want to do different lookups (i.e. get names back in a different format, get the actual line display name from CUCM, or lookup elsewhere) then you would need to either:
    1) Do it via SOAP or another technology from the UCCX script engine
    2) Put in a small external web service to do the lookups and allow UCCX to query via simple HTTP
    3) Use a DB for the numbers so you can read/write to it from UCCX and regularly update the data from wherever you like
    Regards
    Aaron HarrisonPrincipal Engineer at Logicalis UK
    Please rate helpful posts...

  • Oracle 9ir2 Max length of element/field name?

    Does anyone know what the max length of a element/field name can be in Oracle 9ir2?
    thanks,
    -mcd

    Thanks.. So, the max length is still 30.. what about this:
    Is this also true for the length of element names defined in an XML schema for use by Oracle XML DB?
    There are two ways in which XDB can absorb a schema -- one that causes the XMLTYPE to be stored in a CLOB, the other causes the XMLTYPE to be broken down into relational tables behind the scenes. The latter uses the element names for the table names, so I'm assuming it would be restricted by the 30-character column name limit (unless XDB has some way of truncating the column names but preserving the element names). But what about the case where the XMLTYPE is stored in a CLOB? In theory, there's nothing limiting the length of the element name.

  • Add child element by name with namespace

    I'm trying to add element by name that is in namespace. This call
    mod.addAppendStep ( Exp, XmlModify.Element, Name, Text )
    fails with error:
    Error: XmlModify::addStep: Cannot create content for step
    Name in abobe call is "my_ns:elem_name", query context is linked to that namespace (I tried query context not linked to namespace as well).

    If you want to add an element in a namespace, you need to do it using an empty name, and put the element (with namespace decl). E.g.:
    mod.addAppendStep(Exp, XmlModify.Element, "", "<my_ns:elem_name xmlns:my_ns='uri_for_my_ns' />").
    The exception you're seeing is saying that it can't create the content, and the content is created by parsing what is passed in, and <my_ns:elem_name/> is not well-formed (namespace prefix hasn't been mapped).
    Regards,
    George

  • Am I able to sort files by name in elements 11 organiser?

    Am I able to sort files by name in elements 11 organiser?

    Thanks, I'll give it a try, however, I now have Apple Aperture which gives me a very comprehensive 'filing & sorting system'.
    regards
    david

  • How to create a element that contain a element generated in another document

    Hi,anybody.
    I want to create a element that contained a element generated in another document.The following is my coding:
    doc1 = new XMLDocument();
    ele1 = (XMLElement)doc1.createElement("AAA");
    doc2 = new XMLDocument();
    ele2 = (XMLElement)doc2.createElement("BBB");
    ele2.appendChild(doc2.createTextNode("bbb"));
    XMLNode ele = (XMLNode)ele2.cloneNode(true);
    ele1.appendChild(ele);
    but there is a DOMException,Node doesn't belong to the current document.
    Thanks in advance.
    null

    Hi Marc,
    it is currently not possible to check for values in other tables within different repositories (main tables).
    If you want to check for values in flat lookup tables, use the "Fields" menu in the expression editor. You will get sth like this:
    IS_NULL(Category.Item)
    whereas "Category" could be a lookup table (flat, hierarchy, taxonomy) and "Item" a field in it.
    Checking across qualified lookup tables is only possible in a very restricted manner.
    Hope that helps.
    Christian

  • How to access XML elements by name in Extendscript??

    I'm almost done the script that I've been working on, but something has been nagging me since I started. When I did start, I looked at the JS Tools Guide CS5 that comes with the extendscript ide to check how to access XML elements, children, attributes etc. It says this:
    The XML object represents an XML element node in an XML tree. The topmost XML object for an XML file
    represents the root node. It acts as a list, which contains additional XML objects for each element. These in
    turn contain XML objects for their own member elements, and so on.
    The child elements of an element tree are available as properties of the XML object for the parent. The
    name of the property corresponds to the name of the element. Each property contains an array of XML
    objects, each of which represents one element of the named type.
    So basically it converts the XML into JSON. And you can access the properties like so:
    <book category="COOKING">
         <title lang="en">The Boston Cooking-School Cookbook</title>
         <author>Fannie Merrit Farmer</author>
         <year>1896</year>
         <price>49.99</price>
    </book>
    The Javascript statement bookstoreXML.book; returns the entire list of books.
    The statement bookstoreXML.book[0]; returns the XML object for the first book.
    The statement bookstoreXML.book[0].author; returns all authors of the first book.
    A couple pages down it talks about Retrieving contained elements using children(), elements(), descendants().
    So now I look through the XML Object properties and I see that I can use:
    xmlObj.child (which) which A String, the element name, or a Number, a 0-based index into this node’s child array.
    or
    xmlObj.descendants ([name])
    name Optional. A String, the element name to match. If not provided, matches all
    elements.
    or
    xmlObj.elements (name);
    name Optional. A String, the element name to match. If not provided, matches all
    elements.
    This is an excerpt of an XML I was working with:
    <ROW xmlns="http://www.filemaker.com/fmpdsoresult"
         MODID="16"
         RECORDID="11128">
       <Sign_Type>251.dr</Sign_Type>
       <fm:Location xmlns:fm="http://www.filemaker.com/fmpdsoresult" xmlns="">5-5024</fm:Location>
       <Line1>Zone
    Floor
    3
    Patient Rooms
    R532 - R436 even
    Patient Rooms
    R522 - R446 even
    Xavier Elevators
    Zone
    Patient Rooms
    R537 - 5757 odd
    Main Elevators
    Zone</Line1>
    </ROW>
    Extendscript will not give me an anything when I try to access elements by name. Instead I have to access by index, which works, but I'd rather search for names!
    Actually the console log returns: <![CDATA[]]>
    What am I doing wrong!?

    First, those E4X XML objects are definitely no JSON (plain data) - they have a multitude of methods, even for tasks that would easily be implemented as property (e.g. the length() function), and they also bind xml element and attribute names onto the objects, allowing to target a multitude of XML nodes with a single statement. Or did you mean your script with that "it"?
    Anyway, as you found out the ExtendScript XML object handles namespaces mostly by hiding them from you.
    You could play around with global namespace settings, see the JavaScript tools guide.
    You could also explicitly specify a namespace. This works for me:
    $.writeln(myXML["fm:Location"]);
    For simple use I had most success with a brute force approach that just strips the namespaces.
    function removeAllNamespace(xml)
              var ns =new Namespace();
              var d=xml.descendants();
              for (var i=0;i<d.length();i++)
        d[i].setNamespace(ns);

  • Background Task on Adobe Photoshop Elements and Adobe Premiere Elements Organizer "hangs"

    I recently upgraded my software from Elements 10 to Elements 12 and had a bit of trouble.  Apparently both 10 and 12 have a way of launching an executable in the background which tends to get "stuck" on my system.  I believe the problem may be related to the network configuration and software mix I live with, but I need to confirm my suspecions and find a way to control the problem.  Here is what I know... I have always experienced a lot of problems using Elements with my NAS device which is a 1TB usb 2.0 connected disk system attached to my Linksys  E3000 Router.  When I got the router, the BIOS software did not correctly support NTFS file systems, but subsequent updates eventually made this possible if you formatted the removable drive on a system in NTFS, you could then hang it on the router and "see" the contents, serve them via Windows Media Player, or iTunes, etc., etc. from a computer atteched to the network, or via wirless directly off the router.  I archived all my photos out on this file system and have successfully indexed it for use with Adobe Photoshop Elements and Adobe Premiere Elements Organizer, but...  When I went to install Elements 12 software I tried to install it without first removing Elements 10, and on a system which had run Elements 10 since the last full reoboot.  During the install of 12 under "shared services install" the installation process "Hung" on a background task with a name like "AdobeElementsAnalyzer.exe" which only shows up in Windows 7 task manager as a running process, not as a full program, but because the file was locked by the system, the install hung.  I eventually figured out that I needed to start the install of Elements 12 software immediately after having rebooted so that this program was not present in the background, and succeeded in completing an install of Elements 12 on my Windows 7 X64 system.  This system required a "special" software download for Premiere Elements, but not for Photoshop Elements which is only apparently avaliable under 32bit emulation mode.  I finally got the "shared components" portion of the X64 Premiere Elements to complete an install, and then set about verifying the onversion/upgrade of the indexes to my photos and video stored out on the NAS.  The same rogue task which prevented me from doing the install showed up agian, taking all the system resources away from my dual processor Intel chip and refusing to let go.   I was forced to terminate it from the task manager.  I strongly suspect that my "issues" are in part due to the extrordinary network latency imposed by the drive connection I'm using to index my photos and videos, and I'm looking for a better approach to using the editors against my master catalog of files, as well as figruing out just what I need to do to insure that all the files I have stored on the drive are accessible by the organizer when I need to pull a copy to work on.
    A complication is that I have two "legacy" Windows XP systems on my network, a reasonably fast Windows Vista Business desktop, and the Windows 7 X64 processor system which is the most powerful system I have.  The Windows file security enhancements to NTFS changed from XP, to Vista, to Windows 7, so files which get saved to the NAS disk inherit a variety of different levels of security under windows.  I have occasionally gone to one of my old XP boxes and "wiped" the security settings by resetting everything via Windows XP.  Because the NAS is so slow, this process can take several hours and must not be interrupted by attempts to do anything affecting the NAS by any of my other networked computers.  To avoid problems with my photo archive, it makes sense to me to do all my editing on copies which have been extracted from the NAS archive and stored on the C: drive (boot drive) of my Win X64 system. 
    What I seriously need to know is this:  When/If I define a "watched" portion of my file system, rather than taking the time to manually import every little change to my photo archives, can I expect the Photoshop Elements Organizer to work properly as long as everything stored on the NAS is stored via the same system which runs Elements with the same active "user" in control so that all the windows 7 file security settings putting stuff on the mapped NAS drive remain properly secured under Win 7 X64?  Frankly I don't care if the files appear "read only" to every other system and identity on my network, but I do need to be able to "see" them.  I have been able to view slide shows and movies stored on the NAS via both my networked iPad, my Apple TV, and using Samsung's funky android and Windows compatible software.  Frankly, I doubt that Microsoft or Apple has full understanding and control of the environment where there is no host "server" other than the eprom based stuff my Linksys E3000 loads to emulate early Windows Media Management architecture, but I mange to get it to work as long as I don't try anything sophisticated with the file permissions.   As a fall back, can I expect individual "imported" bits out on the NAS to remain stable if indexed and used only by the Elements Organizer running on my Win 7 X64 system?
    I am seriously considering converting an old WinXP desktop into a UNIX box which could be configured as a "Server" for everything stored on the NAS and be done with my problems in return for the power required to run the server all the time so stuff is there when I need it.  Any recommendations?
    Message was edited by: [email protected]

    Adobe hasn't said whether it officially supports PSE 7 on Windows 7.  But reports are starting to trickle in that PSE 7 works fine on Windows 7 for most people, though a couple people have reported crashes. My PSE 7 seems to work fine, though I primarily use PSE 8 now.  This is all very preliminary, and we'll learn more as more people post here.

  • Adobe Photoshop Elements 12 & Adobe Premiere Elements 12

    I just purchased Adobe Photoshop Elements 12 & Adobe Premiere Elements 12. I was able to download and open Photoshop Elements 12 but the Premiere Elements 12 is not downloading. Each has a separate serial # and I assume they are two separate softwares, or are they one software that downloads under the name Adobe Photoshop 12 and runs jointly?
    Beau123

    Beau123
    Photoshop Elements 12 and Premiere Elements 12 are standalone products. Typically after you download one, you designate the next and do that download.
    Since you have purchased serial numbers for each of the products and you have been able to obtain only 1/2 your purchase, best contact Adobe via its Adobe Chat to correct the situation.
    http://helpx.adobe.com/contact.html?product=premiere-elements&topic=downloading-installing -and-setting-up
    Click on the above link and, when it opens, click on "I still need help" to get Adobe Chat pop up.
    I think that the "Downloading, installing, and setting up" category looks like a good choice. There is also another category that might be useful named "Orders, Refunds, Exchanges". But start with "Downloading, installing, and setting up" and let us see what that Adobe Chat group has to contribute and if it can correct the matter.
    Please let us know the outcome.
    Thanks.
    ATR

  • JAXB, element order and optional elements

    Hi,
    I am trying to write a program that depends on JAXB and I am encountering a number of problems. The first is that the party from which we get our XML data from is capable of sending the elements in a given element in any order and JAXB is very stringent about order, is there any way to override this behaviour? The next, is if an element, that has children, is marked as optional in the DTD, JAXB will treat it as mandatory which also creates problems for us as some of these type of elements are optional.
    Does anyone know when JAXB ea2 is due?

    To your second topic, this is a known bug in the EA, see
    http://developer.java.sun.com/developer/bugParade/bugs/4497267.html
    To the first topic: If you define the DTD in a way, that the element order is not fixed, then JAXB should accept that. E.g. instead of<!ELEMENT foo (a,b,c)>you could write<!ELEMENT foo ((a|b|c)*)>Of course, this is even looser, as it does not prevent you from sending multiple instances of a, b and c, and the generated code does not contain a getA, getB and getC method, but just a getContent returning a List.

Maybe you are looking for

  • No output has been selected for Printing

    I have copied standard output determination procedure for invoice,maintained output condition record  & access sequence -billing document type. I got above message in VF02/ VF03 while selecting "Issue output to'. My requirement is to get output selec

  • How to fix Firefox when stops loading content

    Firefox has become virtually unusable for me. After a little bit of use, the program just refuses to load new content. I don't know what the issue is that's causing it but I've done everything I can to try to fix it: "Reset" Firefox in the Help area

  • Deploying an .ear failed miserably.

    My log has entries like this from my attempt to deploy a perfectly healthy .ear file ####<May 14, 2001 8:43:36 PM PDT> <Error> <Management> <ann> <petstoreServer112> <Application Manager Thread> <> <> <141004> <IOException opening application petstor

  • Organizing and Deleting Raw CR2 Photos in Pictures

    I want to delete photos from my hard drive to free up space.  At one point I thought I would be interested in serious photography and I stored some photos in Raw format to use in Adobe Photoshop and Lightroom.  I have a lot of photos in i-photo and I

  • Thread deadlocked on itself?

    Hi, we have a production server, where threads become occassionally unresponsive. At that time, we take a thread dump. A few of those thread dumps show a thread is waiting to lock an object. Strangely, a few lines down in the stack trace, the same th