How to remove Special characters in XSLT

Hi
I have one issue in XSLT transformation,in my input xml I have the < and > symbols but while in response it is coming as &lt due to this we lose some data . so is there any functions to get the symbols.
Regards
Mani

Hi Eric,
Thanks for reply,I am able to get the <,>,&etc.. in response by using "disable-output-escaping='yes'" but apos and cap symbols, unable to get in the response,how to get these.
Regards
Mani

Similar Messages

  • How to remove special characters while typing data in edit cell in datagrid in flex4

    Hi Friends,
    I am facing this problem "how to remove special characters while typing data in edit cell in datagrid in flex4".If know anyone please help in this
    Thanks,
    Anderson.

    Removes any characters from
    @myString that do not meet the
    provided criteria.
    CREATE FUNCTION dbo.GetCharacters(@myString varchar(500), @validChars varchar(100))
    RETURNS varchar(500) AS
    BEGIN
    While @myString like '%[^' + @validChars + ']%'
    Select @myString = replace(@myString,substring(@myString,patindex('%[^' + @validChars + ']%',@myString),1),'')
    Return @myString
    END
    Go
    Declare @testStr varchar(1000),
    @i int
    Set @i = 1
    while @i < 255
    Select
    @TestStr = isnull(@TestStr,'') + isnull(char(@i),''),
    @i = @i + 1
    Select @TestStr
    Select dbo.GetCharacters(@TestStr,'a-z')
    Select dbo.GetCharacters(@TestStr,'0-9')
    Select dbo.GetCharacters(@TestStr,'0-9a-z')
    Select dbo.GetCharacters(@TestStr,'02468bferlki')
    perfect soluction

  • How to remove special characters in xml

    Dear friends,
    How to remove the special character  from the xml. I am placing the xml file and  fetching through file adapter.
    The problem is when there is any special character in xml. i am not able to pass to target system smoothly.
    Customer asking schedule the file adapter in order to do that the source xml should not have any special charatcters
    How to acheive this friends,
    Thanx in advance.
    Take care

    Hi Karthik,
    Go throgh the following links how to handle special character
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42
    Restricting special characters in XML within XI..
    Regards
    Goli Sridhar

  • How to remove special characters in a particular column

    Hello,
    i have a csv feed and i load it into a sql table (the sql table has all varchar data type fields)
    feed data looks like (just sampled 2 rows but my file has thousands of like this)
    "K" "AIF" "AMERICAN IND FORCE" "FRI" "EXAMP" "133" "DISPLAY" "505250" "MEDIA INC." 03/01/10" "INV31202" ".00" ".00" "0.00" "ALLO" ;
    "K" "AIF" "AMERICAN IND FORCE" "THU" "TRTH" "123" "MUN MARCH 2010" "505099" "SOCIALTYZE" "03/01/10" "1308" "40,282.32" "40,282.32" "45564.64" "DIS" ;
    some times i got some special characters in my table column (example: in my invoice no column some time i do have # or ! kind of invalid characters ) so how can i remove some kind of special characters in my column
    once it is eliminated then i can write it to new table (with correct data format such as integer)
    could some one please tell me how can i remove special character in a column of particular table
    thanks in advance
    asita

    Removes any characters from
    @myString that do not meet the
    provided criteria.
    CREATE FUNCTION dbo.GetCharacters(@myString varchar(500), @validChars varchar(100))
    RETURNS varchar(500) AS
    BEGIN
    While @myString like '%[^' + @validChars + ']%'
    Select @myString = replace(@myString,substring(@myString,patindex('%[^' + @validChars + ']%',@myString),1),'')
    Return @myString
    END
    Go
    Declare @testStr varchar(1000),
    @i int
    Set @i = 1
    while @i < 255
    Select
    @TestStr = isnull(@TestStr,'') + isnull(char(@i),''),
    @i = @i + 1
    Select @TestStr
    Select dbo.GetCharacters(@TestStr,'a-z')
    Select dbo.GetCharacters(@TestStr,'0-9')
    Select dbo.GetCharacters(@TestStr,'0-9a-z')
    Select dbo.GetCharacters(@TestStr,'02468bferlki')
    perfect soluction

  • Sql: remove special characters

    Hello!
    maybe someone has a hint for me how to remove special characters such as tab/new line characters from columns?
    Thanks in advance!
    Tiberius

    Hmm... actually it's straight forward:
    drop table mytexts
    create table mytexts (comment varchar(50))
    insert into mytexts values ('This is a standard text!')
    insert into mytexts values ('There comes a TAB     <--')
    insert into mytexts values ('This is called a newline
    <--<')
    select * from mytexts
    | COMMENT                                            |
    | -------------------------------------------------- |
    | This is a standard text!                           |
    | There comes a TAB     <--                              |
    | This is called a newline
    <--<                     |
    3 rows selected (1375 usec)
    sqlcli db770=> select replace (replace(comment, '       '), '
    > ') as cleaned_comment from mytexts
    > ;
    | CLEANED_COMMENT                                    |
    | -------------------------------------------------- |
    | Thisisastandardtext!                               |
    | TherecomesaTAB<--                                  |
    | Thisiscalledanewline<--<                           |
    3 rows selected (1662 usec)
    Seems to work...
    regards,
    Lars

  • Need to remove special characters

    Hello All
        Some input is comming from source field, if any special characters comming from source field, I need remove special characters and send data source to target field. please suggest me how will i do .
    Thanks&Regards,
    Venkat

    Hi Venkat,
    check this thread.
    Handling Special Characters
    check the document :
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42
    Depends upon encoding methods handling will differ,
    you can use ISO-8859-1 or ISO-8859-2 instead of UTF-8 for some special characters.
    check this blog:
    /people/ulrich.brink/blog/2005/08/18/unicode-file-handling-in-abap
    cheers
    Sunil

  • How to print Special Characters in Sap-Scripts

    How to print Special Characters in Sap-Scripts
    Thanks,
    Ravi

    Hi
    if u want print special characters we can use hot codes i.e '  '  (single inverted commas). in between these hot codes insert u r special characters.
    write    '    !@#$%^&*( )  '.
    for the above write statement output is
    output is   !@#$%^&*( )

  • How to write special characters in PDF using iText

    How to write special characters encoded with UTF-8 in PDF using iText.
    Regards,
    Pandharinath.

    I don't know what your problem is but that's almost certainly the wrong question to ask about it. Java (including iText) uses only Unicode characters. (You may consider some of them to be "special" if you like but Unicode doesn't.) And when it does that, they aren't encoded in UTF-8 or any other encoding.
    So can you describe your problem? That question doesn't make sense.

  • How to display special characters in Script...

    hi all,
    Can any one tell me how to display special characters in script...
    how to write in text element
    thanks in advance,
    prashant

    Hi Prashant ,
      What special characters would you like to include .
    There are a set of characters / icons /symbols that can be included in Script , for that open a window in edit mode and in the menu there will be an option called Insert  , here you can find a lot of characters/symbols that can be included .
    Regards,
    Arun

  • Removing special characters

    Hi,
    I have to remove special characters from string and replace it with space.
    Kindly help its urgent.
    Thanks

    Hi,
    You Can use Overlay command for this.
    Syntax
    OVERLAY text1 WITH text2 [ONLY pattern].
    Effect
    Characters in the text1 variable are replaced by characters in the text2 data object which are there in the same location. If the ONLY addition is not specified, all blank characters in text1 are replaced. If the ONLY addition is specified, all characters are replaced that occur in the pattern data object, and upper and lowercase is taken into consideration. If the lengths of text1 and text2 are different, text1 is processed using the shorter length only.
    CONSTANTS initial_time TYPE t VALUE IS INITIAL.
    DATA: time TYPE t,
          text(4) TYPE c.
    text = '12'.
    time = text.
    write : time.
    Thanks,
    Reward If Helpful.

  • How can I remove special characters from spreadsheet filename?

    Hi
    Having a spreadsheet filename coded (on the Report Attributes page) as &VARIABLE..csv works fine unless the VARIABLE contains special characters such as space, lt, gt and so on.
    In the case of space, it is replaced by %20 in the generated filename. Is it possible convert the %20s to underscores (or remove them)?
    thanks
    Trevor

    Trevor,
    I would use a computation on that page to alter the value of variable, perhaps a SQL Expression such as:
      replace (:VARIABLE, ' ', '_')Alternatively, look at the process that puts the value into VARIABLE in the first place and ensure no spaces &gt;, etc are assigned.
    Sergio

  • How to handle special characters in NWDI

    Dear All
    I am trying to update the Description from JSP form. Through JCO we are calling the RFC of ABAP. We are passing these description from Java to RFC of ABAP and this RFC update the text in Database.
    We have noticed that if there is some special character in description like as : š or ž, complete description is not getting updated in to the SAP database.
    Can anyone help me how to handle these special characters in Java. There may be N number of special characters. We want to generalize it. We want to replace these characters by s and z respectively.
    For example : We want to update this description.
    APPLERR H'4301 H'FA03 H'254C na Zagreb TC4 riješen je cleaning procedurom, te je i kroz CSR odgovoreno da trap korekcija N01TCADG-0052 u bloku UPDC više nije potrebna, te se može izbaciti (AP143).
    Uspješno su završene HR17/CN-A3 FOA-e na tranzitnom nivou, te slijedi roll-out u dva termina 12/13.04 i 19/20.04. ETK je na sastanku isporu&#269;io SW, te ALEX i mini PLEX za sve objekte.
    AP147. Poslati finalnu dokumentaciju za uvo&#273;enje paketa (implementacijsku instrukciju i sve popratne datoteke).
    WHile updated text is as follows :
    APPLERR H'4301 H'FA03 H'254C na Zagreb TC4 rije
    N01TCADG-0052 u bloku UPDC vi
    Uspje
    sastanku isporu
    AP147. Poslati finalnu dokumentaciju za uvo
    Regards
    Bhavishya

    Hi Bhavishya,
    Apparently your SAP database isn't configured to support Unicode. That would be the first solution to your problem, but I can imagine it's a bit drastic to convert your DB.
    A second solution would be to encode the input description to ASCII before storing it in the database. When reading from the database, decode again to Unicode. This way, no information is lost. A suitable encoding would be Base64. e.g.
    String description = "šunday žebra";
    String descriptionBase64 = new sun.misc.BASE64Encoder().encode(
      description.getBytes("UTF-8")); // ""
    // store descriptionBase64 in the DB
    // later, when reading descriptionBase64 from the DB
    String description2 = new String(
      new sun.misc.BASE64Decoder().decodeBuffer(descriptionBase64), "UTF-8");
    Instead of using Sun's implementation, a better alternative is to use the open source implementation
    org.apache.commons.codec.binary.Base64 from Commons Codec . 
    The 3rd approach is indeed to normalize the description by replacing all special characters with their ASCII equivalent. A rather easy solution is as follows:
    String description = "šunday žebra";
    String descriptionNormalized = sun.text.Normalizer.normalize(
      description, sun.text.Normalizer.DECOMP, 0).replaceAll(
      "[^p{ASCII}]", "");
    sun.text.Normalizer decomposes the string, e.g. "éàî" becomes "e´a`i^", after which non-ASCII characters are being removed using a regular expression.Again, note that it's usually a bad idea to use sun.* packages, see note about sun.* packages. The above code only works with J2SE 1.4 and J2SE 5.0, but it breaks in J2SE 6.0 (where
    java.text.Normalizer became part of the public API ;-). A good open source implementation can be found here: ICU4J (com.ibm.icu.text.Normalizer). 
    Kind regards,
    /Sigiswald

  • Remove Special Character in XSLT

    Hi All,
    Could anyone please help me in removing the special characters  in the XSLT file.
    For Example, XSLT tag has like below code,
    <Name>
    <xsl:valule-of select="Payee/Name"/>
    </Name>
    where as Payee/name has value of "ORACLE%$ISGREAT".(I can have only A..Z and 0..9, no other than this)
    Could any one pls help me.
    Regards,
    Uva

    Which XSLT version are you able to use? 1.0 or 2.0 ?
    On 2.0, regular expressions support makes it easy :
    <xsl:value-of select="replace(Payee/Name, '[^0-9A-Z]', '')"/>
    On 1.0, it's just a bit more complicated, using the double translate trick :
    translate($str, translate($str, '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ', ''), '')
    which you can turn into a named template for modularity :
      <xsl:template name="sanitize">
        <xsl:param name="str"/>
        <xsl:value-of select="translate($str, translate($str, '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ', ''), '')"/>
      </xsl:template>
    and call it like this :
    <xsl:call-template name="sanitize">
      <xsl:with-param name="str" select="Payee/Name"/>
    </xsl:call-template>

  • Remove special characters from incoming data

    Hi Varun, You could use either of below.. REG_REPLACE(YOUR_INPUT_STR,^[A-Za-z0-9 ],NULL)  -- Replaces all non-alphanumeric with null
       REG_EXTRACT(YOUR_INPUT_STR,[A-Za-z0-9 ]) -- Extracts only alphanumeric data -Rajani

    i have special character coming in the source data and i want to remove it before loading into target, currently i am getting one special character , it may come as some other type of special character  other than alpha numeric. so how to remove those special characters from data and load the alphanumeric data into target.

  • How to add special characters in Flash CS3

    Hi, i need the help of some flash guru… these last weeks we were working with cloversites.com to build a community website… the interface is awesome etc etc however we in Malta have eight special characters (GCZ with a dot on top of them and an H with a second strikethrough). Those at cloversites wrestled with the problem, they could see the characters on their computers but when they entered the text in the site, flash couldn't render the special characters. Here is their message:
    I am extremely sorry about this, but we were unable to add in your characters. We attempted to add them into our software but they did not work. We worked on it all morning and realized that we need an extra add-on for our keyboards. Adding special characters is nothing new to us and have answered this request for many of our international users. For some reason, the Maltese characters did not work in our sites. For example, our "option-G" is the copyright symbol so it will need to be transferred over to international characters.
    Unfortunately, we thing that this has to do with Adobe Flash CS3. The software allowed me to embed the characters, but we were unable to render them on the web. Which led us to think it had to do with the version Adobe is running and its inability to render the text through its software on the web. None of the characters worked on the web, and it looks like its just an Adobe bug. So we are able to type and use the Maltese characters, but Adobe Flash is having trouble with them.
    Does anybody know of any possible solution?

    see if codepoints-to-string() is suitable for you ..
    Re: how to concatenate hexadecimal value to string in XQuery in PS Message Flow

Maybe you are looking for

  • My external hard drive is not working on my mac.

    I have tried all options available such as going on finder and making my hard drives visible and disk utilities

  • ITEM INTREST  NOT UPDATATING THE G/L ACCOUNTS?

    hi I HAVE BEEN TRYING TO POST THE INTREST ON ARREARS THROUGH T CODE F.24 I COULD ABLE TO VIEW THE INTREST BUT IT IS NOT BEING UPDATED IN GL ACCOUNTS AND SUNDRY DEBTORS INDIVIDUAL BALANCES. CAN SOMEBODY HELP ME? i did all configuration steps, IN OBV1 

  • Customer Vendor Ref. No. in Incoming Payment

    B1 8.8 PL14 and PL18 Are we able to include the Customer Vendor Reference Number in the Incoming Payment? 1. Open Incoming Payment 2. Select Form Settings 3. Cust./Vendor Ref No is selected as Visible but the Incoming Payment window does not display

  • Mail will not allow me to edit an email address

    I have an e-mail address that shows up with the wrong last name. I right-click, delete the incorrect last name. But as soon as I change to a different field it puts the wrong last name back in. Why won't my changes stick?

  • Need Help Please - I can't get Java to compile my programs

    Hi, I'm taking a programming course in college and want to be able to compile my java programs at my home laptop instead of just at the lab... However, when I write my code and try to compile with TextPad, there is no "Compile" option....Instead ther