Regarding special characters in XSLT
hi ,
i am working on XSLT, as we know that XSLT does not support special characters we need to handle them. can anyone provide me with the entire list of characters that XSLT does not support. I had searched in google but could only find a few.
thank you.
Excuse me, but this is a Java board.
Similar Messages
-
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 < due to this we lose some data . so is there any functions to get the symbols.
Regards
ManiHi 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 -
Special Characters in KM Names
Hello Experts,
are there any restrictions regarding special characters in KM Properties or any other Km Objects? I have in mind i read somewhere about restrictions for search result set names / ids, are there are also in any other areas restrictions?
Thanks for your help,
Stefan>
Raymond HENG wrote:
> Thus..a quick conclusion if I may..
> 1) Folder and file name: any of your choice but will impact your portal search if you choose to use special char's in the name
> 2) Folder and file ID: No spacing or special char's as indicated by Bobu.
>
> Hope that helps.
> Ray
Wow, this is misleading.
The confusion starts with saying "special", and then not define it...
The KM UI uses display names, but this doesn't affect what you can or can't put into an identifier (the RID for resources, or the property name for properties).
What RIDs can take depends on the repository manager. In the best case, it roughly allows everything that would be allowed in a Windows filename. In particular, some rules depend on position as well, such as no trailing whitespace.
Property names by definition use the same rules as XML element names (thus no whitespace at all).
BR, Julian -
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,
UvaWhich 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> -
I am having the file-xi-proxy inerface.
In the input file i have one field called "description"(50 in length). The vendor is
giving the input file with special characters in the description field. XI is able to
read the file. BUt during the mapping it is failing ( no transformation I am using.
Just it is a one to one mapping). HOw to pass the message through XI without failing
I am using file type as text and file encoding as UTF-8
Any help in this regard is highly appreciated.
Regards
kumarHi Palnati,
You could try to replace this characters with the help of a
user defined function or xslt mapping....
the special characters are '#' and '=' .. If so you can add them in RSKC ..
And then load from the PSA to your data target ..
Have a look at this thread...
Korean language issue in XI
/people/siegfried.szameitat/blog/2005/07/18/text-infoobjects-part-1
Reward points if this helps
Regards
Vani. -
XML Publisher report not printing excel output due to special characters
Hello,
I am trying to create a xml publisher report which should display the output in excel. But the program completes with a warning status and the output is displayed as XML instead of excel, with some errors "An invalid character was found in text content. Error processing resource " and i think these errors are due to the special characters(eg: city/province - A Coruña, Cáceres). If i give rownum < 10 in my query, where there are no such characters it works fine and i am getting an excel output.
Tried changing the XML encoding and it doesn't help (both mentioned below)
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="UTF-8"?>
Do anyone have a solution for this
Thanks in advance
Edited by: user10317098 on Jan 16, 2012 10:58 AMHi,
Check this links that might help you..
https://forums.oracle.com/thread/1018488
http://docs.oracle.com/cd/E10091_01/doc/bip.1013/e05000/toc.htm
Here the Exact solution from Oracle
In the XML PUBLISHER ADMINISTRATOR Resp..
Click the administration..
then Click HTML Output
Then in the Base Image URI Give the url of your application for example
http://Test.Test.com:8000/OA_MEDIA/
And then
Image File Directory give this as per your application setup
/u01/app/oracle/apps/apps_st/comn/java/classes/oracle/apps/media/
Thanks & Regards
Srikkanth.M -
Displaying special characters in ALV report.
Hi Experts,
Can we display special characters in ALV reports? Special characters such as tick mark.(Like in character map(Font Bookshelf Symbol 7) of windows ).
I tried with icons in ALV report, I was able to display tick icon in the ALV report, but when we export the report in to a excel, the icons comes in as Hexadecimal code.
Can any we display special characters like tick in ALV report or display the icons in excel aswell?
I will be gratefull for the <urgency reduced by moderator> response.
Regards,
Sharath.
Edited by: Thomas Zloch on May 10, 2011 10:26 AMSharath,
I think it is possible to do so.
Please check this link.
http://www.sapfans.com/forums/viewtopic.php?f=13&t=322569
Thanks,
Guru. -
Time-dependent Vendor Master & Handling Special Characters
Hi,
I need to extract time-dependent Vendor Master.
1. The data source for <b>0VENDOR</b> does not have fields to hold the valid date range.
2. Does the Master data in R/3 for Vendors will hold the valid date range?
3. The text for <b>0VENDOR</b> provides time-dependent, but how to map the <b>valid from</b> and <b>valid to</b> fields?
Handling Special Characters:
We are trying to extract data from Legacy system via DB Connect. The item text field consists of special characters. Of course in BW customization we can specify all the special characters to consider. But the special character we observed is 'square' symbol i.e. 'new line character' in Oracle. We are updating this to an ODS object. When looked at error log, observed that green light for the number of records transferred and updated, but finally when it load into ODS object and activates popping up the error message saying 'could not recognize special character'.
Please help me getting the 2 issues resolved.
Thanks in advance.
Regards,
Sudhakar.Hi Everyone,
Thanks for inputs on Special characters issue...
Finally resolved with below piece of code in the start routine:
DATA: FLAG,
OFF TYPE I,
LEN TYPE I VALUE 1,
ALLOWED_CHAR(95) VALUE
'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ`~!@#$%^&*()-_=+ ' &
'abcdefghijklmnopqrstuvwxyz:;<>,.?/|\{}[]"'''.
CONSTANTS: C_CHAR VALUE '-'.
LOOP AT DATA_PACKAGE WHERE NOT /BIC/ZI_DESC IS INITIAL .
DO.
IF DATA_PACKAGE-/BIC/ZI_DESC CN ALLOWED_CHAR.
REPLACE SECTION OFFSET SY-FDPOS LENGTH LEN OF
DATA_PACKAGE-/BIC/ZI_DESC WITH C_CHAR.
FLAG = SPACE.
ELSE.
FLAG = 'X'.
ENDIF.
IF FLAG = 'X'.
EXIT.
ENDIF.
ENDDO.
MODIFY DATA_PACKAGE.
ENDLOOP.
if abort is not equal zero, the update process will be canceled
ABORT = 0.
I have seen the link sent by 'Eugene Khusainov' today. Thought putting my piece of code that may help others...
Regards,
Sudhakar. -
Unable to call report from jsp - password contains special characters
Hi
I used the following url to call my oracle report from my JSP webpage but got the error mentioned below. It seems that this error occurs when i use the login id with password that contains special characters only. How can I overcome this problem?
Any help appreciated. Thx.
Regards,
Siti
URL used: -
"http://pc-325:8889/reports/rwservlet?server=pc-325&report=prodeff80120i&P_JDBCPDS="+vlogin1+"&destype=cache&desformat=pdf¶mform=no&p_type="+p_type;
Error encountered: -
REP-163: Invalid value for keyword DESTYPE.
Valid options are FILE, PRINTER, MAIL, INTEROFFICE, or CACHE.Hi Stefan,
Many of the customers are located in hungary and they have created the userid using their keyboard. Hence for now I already have a userid with that hungarian characters, in the SAP system.
Only I would request for the help on how to interface these characters in SAP Business connector to call RFC.
Thanks, -
How can I distinguish special characters or signs in Doc through VBA?
How can I distinguish special characters or signs in Doc through VBA?
I have a few large documents written in word 2003 format and now I work on them under word 2007.
Such large documents containing lots of special characters. I want to change them into Microsoft 3.0 equation form(It is required by the team). I find no way but using function AddOLEObject and Sendkeys through VBA. Common characters can be added
to equation by function Sendkeys, but the return value of Asc() or AscW() for "double arrow", "in" , " not greater than " such special characters or signs, to name but a few are the same ,i.e., 40 And I cannot distinguish them.
I found the link http://msdn.itags.org/word/44333/ may be of use to me, and the title is:
How to read symbols from a DOC documents! (Microsoft Word)
the original question is
Using function "InsertSymbol", I can insert a symbol into a document. But
how can I read a symbol from a document?
Using "Characters(i).range.text", I can read a char. But when meeting a
symbol, the value of "Characters(i).range.text" is always '('.How can I get the CharacterNumber of the symbol.
And the final answer is :
Hi chenfeng,
Word protects symbols from symbol fonts if you insert them from the "Insert
> Symbol" dialog.
This is done so they aren't changed when you change the font or style. But
it also results in Word reporting AscW( ) = 40 on all of them.
I've posted a macro to "unprotect" them (or to protect them again if you
want) ... just today again in
Newsgroups: microsoft.public.word.vba.customization
Subject: Symbol Characters
Date: Mon, 3 May 2004 11:00:46 -0700
Message-ID: <09f401c43138$8f92f900$[email protected]>
It isn't archived on Google yet, but tomorrow you should be able to simply
copy the message ID into http://www.google.com/advanced_group_search.
Regards,
Klaus
But the link for the macro in the final answer is missing.
Can anyone with kindness help me? Thaks a lot.Following Cindy Meister's Advice ,I use MathType SDK.
The sample in MathType SDK in the following may be meaningful,but I do not know how the MTEF for cos^^2Theta, MTEF for sin^^2Theta and MTEF for 1 are generated .
It looks much complicated,and I searched the docs in MathType SDK to get a explanation.Is there any function to generate them? I want to use this method to change commaon text mathematical signs( in special character table) and Greek letters and characters
with subscripts and superscripts to Microsoft 3.0 equation form.
Can anyone with kindness help me?
Sub MTEFTextSubstitution()
Dim MTEFStr1$, MTEFStr2$, MTEFStr3$
Dim stat
'MTEF for cos^^2Theta
MTEFStr1$ = "% MathType!MTEF!2!1!+-" + _
" % feaaeaart1ev0aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn" + _
" % hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr" + _
" % 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq-Jc9" + _
" % vqaqpepm0xbba9pwe9Q8fs0-yqaqpepae9pg0FirpepeKkFr0xfr-x" + _
" % fr-xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaci4yaiaac+" + _
" % gacaGGZbWaaWbaaSqabeaacaaIYaaaaOGaeqiUdehaaa!3B65!"
'MTEF for sin^^2Theta
MTEFStr2$ = "% MathType!MTEF!2!1!+-" + _
" % feaaeaart1ev0aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn" + _
" % hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr" + _
" % 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq-Jc9" + _
" % vqaqpepm0xbba9pwe9Q8fs0-yqaqpepae9pg0FirpepeKkFr0xfr-x" + _
" % fr-xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaci4CaiaacM" + _
" % gacaGGUbWaaWbaaSqabeaacaaIYaaaaOGaeqiUdehaaa!3B6A!"
'MTEF for 1
MTEFStr3$ = "% MathType!MTEF!2!1!+-" + _
" % feaaeaart1ev0aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn" + _
" % hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr" + _
" % 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq-Jc9" + _
" % vqaqpepm0xbba9pwe9Q8fs0-yqaqpepae9pg0FirpepeKkFr0xfr-x" + _
" % fr-xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaaGymaaaa!36A4!"
Selection.Copy
'Init API, reset transform
' If MTUtil.CheckMTDLLVersion = 0 Then Exit Sub
If Not IsDLLVersionOK() Then Exit Sub
MTXFormReset
'first substitution
stat = MTXFormAddVarSub( _
mtxfmSUBST_ONE, _
mtxfmVAR_SUB_PLAIN_TEXT, "<v1>", 0, _
mtxfmVAR_SUB_MTEF_TEXT, MTEFStr1$, Len(MTEFStr1$), 0)
If stat <> 0 Then
MsgBox "1st MTXFormAddVarSub returned: " + Str(stat)
Exit Sub
End If
'second substitution
stat = MTXFormAddVarSub( _
mtxfmSUBST_ONE, _
mtxfmVAR_SUB_PLAIN_TEXT, "<v2>", 0, _
mtxfmVAR_SUB_MTEF_TEXT, MTEFStr2$, Len(MTEFStr2$), 0)
If stat <> 0 Then
MsgBox "2nd MTXFormAddVarSub returned: " + Str(stat)
Exit Sub
End If
'third substitution
stat = MTXFormAddVarSub( _
mtxfmSUBST_ONE, _
mtxfmVAR_SUB_PLAIN_TEXT, "<v3>", 0, _
mtxfmVAR_SUB_MTEF_TEXT, MTEFStr3$, Len(MTEFStr3$), 0)
If stat <> 0 Then
MsgBox "3rd MTXFormAddVarSub returned: " + Str(stat)
Exit Sub
End If
'do the substitution
stat = TransformGraphicEquation
If stat <> 0 Then
MsgBox "TransformGraphicEquation returned: " + Str(stat)
Exit Sub
End If
MTTermAPI
'Paste new equation
Selection.Collapse Direction:=wdCollapseEnd
Selection.PasteSpecial Placement:=wdInLine
End Sub -
I have a Flash Sample to rotate images and text but I not find a way to display special characters
Hello everyone.
I bought a very nice Flash application that rotate images, and text of any color and size. It use an XML input file.
I've posted here, a complete copy, so any of you can download, view and use it freely.
I would appreciate if any of you know how to do, so that the text displayed, including the characters I use in my language (Spanish), such as á, é, í, ó, ú, ñ, and other special characters.
In fact, I could not find a way to do it, because I'm not expert Flash, and less in ActionScript.
If any of you would help me on that, I thank you implement the appropriate adjustments and compressed into a. zip file, and let me know where to download it, or if you prefer you can send it to my email: [email protected]
After all compressed in .zip format is a very small file: 430K.
Click here to download the complete sample.
Thanks.
=====================================
Translated using http://translate.google.es
=====================================Hello Rinus,
If I understood your last post correctly, then problem 2 is resolved, right?
Regarding problem 3:
I'm not asking you to share exact VIs.
I just want to see a very simple VI that explains the concept of what you're trying to do, what should happen (this can be in words that refer to the front panel elements) and what you've tried.
The terminology you're using isn't clear to me without an extra explanation.
This could even be only a Front Panel with a few buttons on where you just describe what should happen with specific controls/indicators.
Based on the first post it is not clear to me what you mean with:
- A "button element":
Are you talking about a control, an indicator, a cluster that contains multiple control?
- The structure:
Is this an event structure, case structure, for loop, ...?
Is it seems like you want to programmatically control Front Panel objects, which on itself is no problem at all independent of how many objects you want to control.
Please share with me simple example of what goes wrong and explain which things should happen on that specific Front Panel.
This will allow me to help you and also allow me to guide you along the right path.
Kind Regards,
Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
CLD, CTA
If someone helped you, let them know. Mark as solved and/or give a kudo. -
How to check special characters in view
hi,
I have a field in view,in which want to check the field value doesnt contain any special characters.
the field is a char field and it is not associated to any specific data element.
Can u please help me in this reg.
Regards,
SaujanyaHi Saujanya,
In my recent reply............i have give the general answer.
Here is the answer you are looking for........
data:
w_check(37) TYPE c.
w_check = sy-abcde.
concatenate '0123456789' w_check INTO w_check.
concatenate '_' w_check INTO w_check.
IF view_name-field_name CO w_check.
ur code.......
ELSE.
Message 'UR text' TYPE 'E'.
ENDIF.
Hope,your problem is solved.........
Reward,if helpful.
Regards,
V.Raghavender. -
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 careHi 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 replace special characters in Purchase order item text in ECC 6.0
Hi All,
Now i am working in ECC environment.
I am unable to replace the special characters in the PO short text for example take the following text.
Job#Burst Fire 3930-00092#Heater Control
here i want to replace # symbol with space.
i used replace all occurences, find , transfer, overlay keywords to replace thta special characte but it is not replacing that character.
i used replace_string FM also.it is also not working.
please help me out in this. points will be rewarded.Hi Praveena,
what replacement(s) did you try?
Please
replace all occurrences of
CL_ABAP_CHAR_UTILITIES=>newline
CL_ABAP_CHAR_UTILITIES=>cr_lf
CL_ABAP_CHAR_UTILITIES=>form_feed
CL_ABAP_CHAR_UTILITIES=>horizontal_tab
CL_ABAP_CHAR_UTILITIES=>vertical_tab
CL_ABAP_CHAR_UTILITIES=>backspace
CL_ABAP_CHAR_UTILITIES=>minchar
CL_ABAP_CHAR_UTILITIES=>maxchar
minchar is HEX u201900u2018 in non-Unicode systems, U+0000 in Unicode systems
maxchar is HEX Xu2018FFu2018 in non-Unicode systems, U+FFFD in Unicode systems
If it still does not help, check the remaining # characters in debugger, switching to hex mode: Then you may see what it is.
Regards,
Clemens -
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 rijeen je cleaning procedurom, te je i kroz CSR odgovoreno da trap korekcija N01TCADG-0052 u bloku UPDC vie nije potrebna, te se moe izbaciti (AP143).
Uspjeno su zavrene 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čio SW, te ALEX i mini PLEX za sve objekte.
AP147. Poslati finalnu dokumentaciju za uvođ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
BhavishyaHi 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
Maybe you are looking for
-
Hi , I am using iphone 3gs and have unlocked it officially from apple. Now when I tried to upgarde to ios6.1 I was able to download the ios software on my iphone successfully, but when it started installing the ios on my iphone it restarted my iphone
-
Cannot make a stroke on CS2 for mac
Hello, i'm making a document made up of several images imported from photoshop (copy/paste). When i try to make a stroke in each object nothing happens. I can select the color thickness but the object looks the same...the align strike feature is the
-
I have a page (No Tabs With Sidebar) that should show a tree region with tree in the sidebar (REGION_POSITION_02) however it doesn't. If I move the tree region to another position (REGION_POSITION_03) then it displays OK. If I add a text field to the
-
What Resolution to use from Istock for Youtube?
I'm trying to make my first movie which will be uploaded to Youtube. I will shoot my video in 1080. I am assuming (not always smart) that I should use the standard 4:30 aspect ratio. I want to use include some stock video footage...probably from isto
-
How to increase the FONT Size in a report while printing in SAP
Hi , Can anybody let me how how to increase the Font size while printing a report in SAP . Thanks Dhaval..