Display first last name ecord

source schema like 
<ns0:empdetails xmlns:ns0="http://BizTalk_Server_Project3.Schema1">
  <employee>
    <FirstNmae>Kapil</FirstNmae>
    <lastname_x0020_></lastname_x0020_>
  </employee>
  <employee>
    <Firstname>Kiran</Firstname>
    <Lastname>Kumar</Lastname>
  </employee>
  <employee>
    <Firstname>Naresh</Firstname>
    <lastname>Kumar</lastname>
  </employee>
 </ns0:empdetails>
destination will be 
<employee>
    <Firstname>Kiran</Firstname>
    <Lastname>Kumar</Lastname>
  </employee>
the first last name record should come and igoner another records if contains last name or not .

You can acheieve this using Scripting functoid ( Script Type "Inline XSLT Call Template"). Refer to below XSLT script to use. Map output from this scripting functoid to destination node. 
<xsl:template name="Employee">
<xsl:if test="boolean(/*[local-name()='empdetails' and namespace-uri()='http://BizTalk_Server_Project3.Schema1'] /*[local-name()='employee' and namespace-uri()=''][lastname!= ''])">
<employee>
<Firstname>
<xsl:value-of select="/*[local-name()='empdetails' and namespace-uri()='http://BizTalk_Server_Project3.Schema1'] /*[local-name()='employee' and namespace-uri()=''][lastname!= ''][1] /*[local-name()='Firstname' and namespace-uri()='']"/>
</Firstname>
<Lastname>
<xsl:value-of select="/*[local-name()='empdetails' and namespace-uri()='http://BizTalk_Server_Project3.Schema1'] /*[local-name()='employee' and namespace-uri()=''][lastname!= ''][1] /*[local-name()='lastname' and namespace-uri()='']"/>
</Lastname>
</employee>
</xsl:if>
</xsl:template>
Thanks,
Pavan
MCTS-Microsoft Biztalk Windows Server 2010

Similar Messages

  • Mail received displaying sending last name twice - why?

    Here's a strange issue. I recently setup a new user on our domain for email, which is hosted by Google Apps. The new person (we'll call person 1) is using OSX 10.8.3, latest mail, etc... their mail settings on Apple Mail appear to be set correctly and I had this person send a message to myself and got it fine, formatted correctly.
    However, another person (we'll call person 2) in the same domain will get messages from this same person (person 1) and the name which is put next to their email address displays their last name twice. As an example, here's how we typically setup email addesses:
    [email protected]
    This person (person 1) would send a message and only certain receiving people (person 2 and others) would get an email with the address formatted as such:
    "last last" [email protected]
    Could it be the person getting mail (person 2) in this way has not enterted this new person (person 1) as a contact in their address book? I'm also being told that the same person (person 2) who is getting this strange formatted email when they try to create a new message to this person (person 1) and start to enter their name, the mail cache as remembered the same formatting as above, where the last name is repeated twice with no first name.
    Hopefully this is not too confusing. I haven't been able to confirm person 2's address book to see if that's what's going on, but I suspect so.
    Any idea what's going on here?

    Hello Brian,
    Thanks for your question, and welcome to Apple Support Communities.
    From the summary you provided, I think you are right on par with what is going on. I see two possibilities:
    a) the receiver has a contact card setup that is misconfigured (last, last rather than first, last).
    b) the sender has their last name twice in the settings of the mail account (Full Name)
    Should it be circumstance "b", you can edit the information in Mail > Preferences > Accounts - Make sure "Full Name" is configured correctly.
    Here are some helpful articles:
    Mac Basics: Mail (OS X Mountain Lion)
    http://support.apple.com/kb/HT5361
    Mac Basics: Mail (Mac OS X v10.6 and earlier)
    http://support.apple.com/kb/HT2500
    Thanks,
    Matt M.

  • How do get my address book to sort/display by Last Name?

    I would like my Thunderbird Address Book to display by Last Name. How can I accomplish this?

    In the Address Book, display the menu, then '''View|Show Name As…'''
    then sort in the usual way.
    http://www.ramsden.org.uk/8_How_to_sort.html

  • Remove First & Last Name Validation in Get Support

    Hi All,
       I have enabled the self management of password for portal users. I have to remove the First & Last Name validation  and make it optional, I have also made (ume.logon.logon_help.name_required = false)  in configtool and taken the restart of the server, but still it is validating the names.
    If anyone have removed the validation for the above, can help me.
    Thanks in advance.
    Regards
    Ponnusamy

    Hi Ponnuswamy,
    the right place to remove the validation is the par file of the login page.
    Get the par file from the portal. unzip the par file.
    under the PORTAL-INF\lib u will find the umelogonbase.jar
    Extrat the jar. get the java file named
    SAPMLogonLogic.java.
    Modify the piece of code in the java file.
    private void performForgotPassword()
            throws IOException, UMException, FeatureNotAvailableException {
            String methodname = "performForgotPassword";
            if (trace.bePath()) {
                trace.entering(methodname);
            try {
                String longUid = this.proxy.getRequestParameter(LogonBean.LONGUID);
                if (longUid != null) {
                    longUid = longUid.trim();
                // check for email id
                String email = this.proxy.getRequestParameter("email");
                String lastName = this.proxy.getRequestParameter("lastname");
                String firstName = this.proxy.getRequestParameter("firstname");
                String noteToAdmin = this.proxy.getRequestParameter("notetoadmin");
                IUser userFrom = UMFactory.getUserFactory().getUserByLogonID(longUid);
                if (email.equalsIgnoreCase(userFrom.getEmail()) &&
                        firstName.equalsIgnoreCase(userFrom.getFirstName()) &&
                        lastName.equalsIgnoreCase(userFrom.getLastName())) {
                    // email matched, assign a new password and email to user
                    String newPass = UMFactory.getSecurityPolicy().generatePassword();
                    IUserAccount ua = UMFactory.getUserAccountFactory()
                                                       .getMutableUserAccount(longUid);
                    ua.setPassword(newPass);
                    ua.save();
                    ua.commit();
    this is the original coding.
    remove the check for last name and first name in that
      if (email.equalsIgnoreCase(userFrom.getEmail()) &&
                        firstName.equalsIgnoreCase(userFrom.getFirstName()) &&
                        lastName.equalsIgnoreCase(userFrom.getLastName()))
    complie the java file. get the class and store it in the umelogonbase.jar . put the jar back in the original place. deploy the par.
    u will get the desire result.
    cheers,
    Sithi

  • Displaying by last name first screws up the middle name

    Argh. Why couldn't I find any page to submit this as a clear, reproduceable bug?
    If display is set to "First Last" then I see "First Middle Last" and that makes sense. If it's set to "Last, First" I see "Last, Middle First" which makes NO sense. Everybody (but Apple) knows that when you list people in an address book or phone book you list them "Last, First Middle."

    I figured out the solution for this.. If a user doesn't record a 'recorded name' when configuring their Unity account.. they cannot be searched for by name in the directory.. So have any users that are reporting the issue with their account log into their personal unity settings and record their name.. You can tell be looking at their Unity account profile.. If the option to press the play button for Recoded Voice is grayed out, they have no recorded name.. Hope this helps!
    -n

  • In Infopath - From User Group webservice First & Last Name are not displaying

    Hi, I am working on Internet faced Infopath Sharepoint 2010 web application.In Infopath form we used a User Group web service to retrieve the first and last names when opening the form. In Development environment its working fine (Ex:- http://sharepoint2010dev:45/)
    then we extend the webapplication with domain name in url.(Ex:http://Domainsp:80/) then the first and last names from User Groups is not working.
    Please give your suggestions to resolve this isssue.
    Any help is appreciated..!

    Hi,
    According to your post, my understanding is that the User Group web service not worked when extend the web application with a domain name in URL.
    Did you change the URL to the UserGroup web service in the Data Connection Wizard?
    As you had changed the URL, I think you should change the URL(http://<site>/_vti_bin/UserGroup.asmx), then check whether it works.
    http://blog.ianchivers.com/2011/01/using-sharepoint-usergroup-web-service.html
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Outlook task & Contacts first, last name swap

    Hi,
    Sorry if this has been raised before.
    I'm using Windows XP SP2 / Outlook 2003 / Nokia 6275 / Bluetooth. Synching Outlook and phone works successfully except for two small issues:
    * Completed Tasks in Outlook do not delete from phone even though Settings > Calendar options states "PC Sync removes recently completed To-do items from mobile phone".
    * My Outlook contacts are all stored "last name, first name" and sync correctly to phone. However once every month or so some Outlook records (not all) get corrupted and name field is changed to "first name last name"
    Any ideas?

    I am not sure what you mean. If you mean Last name/first name to First name/Last name Go into contacts>options>Settings>Name display and set according to your needs. There are three options there.

  • Contacts first & Last name

    Good day,
        Can anyone help in switching my contacts in X3 from last - first display to First - Last Display.
    Thanks

    I am not sure what you mean. If you mean Last name/first name to First name/Last name Go into contacts>options>Settings>Name display and set according to your needs. There are three options there.

  • First, Last name fields in Numbers -- Three columns on iWeb page

    I'm new to this (both Numbers and iWeb) and I'm trying to help someone with their page (it's for a local candidate).  They have an excel spreadsheet with names and a bunch of other stuff.  they want to put the list of first and last names on their "supporters" webpage, separated by a space, without having to do it manually -- at this point about 900 such names.
    I can get the names out of Excel and into Numbers, obviously.  And I think I know how to get the list into iWeb, if I can generate it (using an iWeb snippet, which I'd also love help with if anyone here knows THAT as well).
    What I can't seem to do is create a list, in three columns, with First name (single space) last name.  Whatever I put in the formula bar seems not to do anything. And I haven't even BEGUN to figure out how to generate the three-column list.
    Any help would be gratefully appreciated.  As dunce-worthy as possible -- believe me, I won't be offended if anyone talks down to me.

    Hi d,
    I think it's the "three column specification that's throwing me. You might need to clarify that.
    The names are currently entered with First names in one column and Last names in the adjacent column. Here's a way to combine the first and last names into a "full name".
    In the "Full" column, the formula is:
    =B&" "&C
    In Last, First, the formula is:
    =C2&", "&B
    To list the names in a three column table in iWeb, you may need to start with a three column table in Numbers. This one pulls the names from column D (Full) of the table above, and distributes them into three columns. The original table has had four names added, and has been sorted.
    Note that the original table has been named "Data".
    The Data table contains the formula(s) shown above.
    The second table, "Aux", calculates the number of cells needed in each of the three columns so that no column is more than one cell longer than the shortest. Doing this calculation in an auxiliary table greatly simplifies the formulas needed in the final table.
    This table contains a single formula, entered in B2, and filled right to D2. Note that A2 is referenced in the formulas in the final table, "3 Columns". A2 may be empty, contain text, or contain the number zero.
    B2 (and fill right): =QUOTIENT(COUNTA(Data :: $C),3)+IF(MOD(COUNTA(Data :: $C),3)>COLUMN()-2,1,0)
    The third table, "3 Columns" displays the names in three columns.
    It contains a single formula, placed in A1 and filled right to column C and down to row 10.
    3 Columns::A1 (and fill right and down): =IF(ROW()<=Aux::B$2,OFFSET(Data :: $A$1,SUM(Aux::$A$2:A$2,ROW()),3),"")
    Descriptions and further examples for the functions used may be found in the iWork Formulas and Functions User Guide. The guide may be downloaded via the Help menu in Numbers.
    Regards,
    Barry

  • In User groups user name is shown as ADLDSMembershipProvider:UserID and not with First & Last Name

    Hello,
    In SharePoint site Groups for some users, user name is coming up with ADLDSMembershipProvider:UserID and not with the correct first name and last name. 
    Can some one please advice how i can get the correct first name and last name for the users, below screenshots for your
    reference.
    Please advice.
    Regards,
    Purvish Shah

    Hello,
    What version of sharepoint you are using?
    It seems that you have also configured custom membership provider with AD LDS. To verify this go to central admin and check the web application properties to confirm what auth method is being used.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Embedded PDF filename = first+last name

    Hello,
    I am currently setting up a website for a sports club and they would like a fillable pdf for online registration that will then be emailed to them upon completion.
    Firstly somehow I need a identifier field I believe if I can use say the first two letters of the first and last name plus the seconds modifier it will be unique. Which they can use as a reference.
    If anyone has any ideas on how to acheive this please let me know =)
    Secondly when the user clicks save or email it would be really handy for the filename to automatically change to the unique identifier.
    Thirdly I'll be embedding this PDF in a joomla article, does anyone have any ideas if I could create a button that would send the pdf as an attachment automatically through joomla when a user presses the submit button in the PDF?
    I have searched all morning (6 hours now) and havn't got far at all, so I decided to come here. Any help is very much appreciated!

    Renaming the file is something that you need to do server-side when you're
    generating the PDF file, before serving it to the user. If the file is not
    generated by a server but is simply offered to the user as a static file on
    the server, then it's not possible.
    I don't know much about Joomla, but I don't think you could achieve this
    with a script from within a PDF, either.

  • Address book. First & last names order problem

    Hi all, I'm having an issue with address book names not appearing in the right order, or more to the point first and last names not appearing in the right order - in fact it's exactly the same as:
    http://discussions.apple.com/thread.jspa?messageID=7471811#7471811
    However that solution doesn't work.
    Essentially, when I go into address book / prefs and click sort by firstname/lastname - the list updates, but when I click 'before last name' / 'following last name' nothing happens at all. The list is ordered by first name - as I want it, but I'm still getting the surname first.
    This has transferred over to my Touch as well so it's very frustrating! any ideas?
    thanks very much for your time

    Hi
    You want the first name first.
    Investigate this.
    Close Address Book
    Open the ~/Library/Preferences/com.apple.AddressBook.plist with Property List editor which comes with XCode.
    Look for the entry
    *ABNameDisplay Number 1*
    and change the 1 to 0 (zero)
    and save. This sets the name order to 'Before last name'
    If you don't have Xcode it might be on your Install DVD.

  • User first/last name assigned to user id?

    Hi All,
    Is there a table out there which links User Idz to First?last name of user?
    let me know
    ciao!

    usr01 usr02 and addr are the main tables.

  • How to break first,last name from rows to columns?

    drop table t1;
    create table t1
    (c1 varchar2(100)
    insert into t1
    values(' <First Name >david </First Name>');
    insert into t1
    values(' <Last Name > smith </Last Name >');
    insert into t1
    values(' <First Name >Harry </First Name >');
    insert into t1
    values('<Last Name > Bird </Last Name >');
    select * from t1;
    C1
    <First Name >david </First Name>
    <Last Name > smith </Last Name >
    <First Name >Harry </First Name >
    <Last Name > Bird </Last Name >
    4 rows selected.
    out put should be
    First Last
    David Smith
    Harry Bird
    Thanks

    If homework I'd probably be looking at the string manipulation functions. If a real application I'd be looking at a different table design, and given that these look like xml tags that are or should be defined in a schema, using XMLDB.
    Niall Litchfield
    http://www.orawin.info/
    drop table t1;
    create table t1
    (c1 varchar2(100)
    nsert into t1
    values(' <First Name >david </First Name>');
    insert into t1
    values(' <Last Name > smith </Last Name >');
    insert into t1
    values(' <First Name >Harry </First Name >');
    insert into t1
    values('<Last Name > Bird </Last Name >');
    select * from t1;
    C1
    <First Name >david </First Name>
    <Last Name > smith </Last Name >
    <First Name >Harry </First Name >
    <Last Name > Bird </Last Name >
    4 rows selected.
    out put should be
    First Last
    David Smith
    Harry Bird
    Thanks

  • Inverting first & last names in reports

    Post Author: jweckerly
    CA Forum: Crystal Reports
    Can anyone tell me the syntax for breaking down a string that contains a persons name? We store names by last name first, separated by commas. When I generate a report I would like to reverse them to have the first name before the last name. Thanks

    Post Author: kcheeb
    CA Forum: Crystal Reports
    In a formula field in CR you could do the following. Not 100% sure if I have the InStr functions arguments in the correct order, but you should be able to look that up
    LastName = Left(Name, InStr(',',Name) - 1)
    FirstName = Mid(Name, InStr(',',Name) + 1))
    FirstName + " " + LastName

Maybe you are looking for