XSL and url encoded data issue

I have a large XML document, which has the data in it URLEncoded to escape the nasty chars.
When I run it through the xalan XSL parser and feed the output to the browser in my servlet, the resultant html has the URLEncoded chars in it. For instance the '/' is still showing up at %2F etc... However, if I can't URLDecode the whole xml document. Is there a simple way for decode the URL chars, without doing too much trickery?
Thanks!
Modoc

You can URL-encode XML data if you like, whatever you mean by "nasty chars" I don't know. The result is perfectly legitimate XML and XSLT will translate it perfectly well. But it won't decode it, that is none of its business. I suppose it would be possible to write an XSLT function to do URL-decoding, but my preference would be to do that some other way. Or not to URL-encode in the first place.

Similar Messages

  • How would you launch an applet using xsl and some xml data?

    Is is possible?

    Thanks for your input but I got it working with the correct CDATA syntax. The concept is to launch a database driven system using xml instead, so the applet piece is completely modular and can be added to any other application that can call a url. No databases need to be created. Its not crazy if the amount of info int he database is managebable.

  • SendRedirect and url encoding

    When I am migrating a web application from tomcat to wls7.0, I am puzzled
              because I need modify the code to encode every redirect Url like below.
              response.sendRedirect("t1.jsp?id="+java.net.URLEncoder.encode(s));
              I think I must miss something in configuration for wls7.0.
              Any suggestions?
              thanks.
              wy.
              

    Ia a jsp I use this.
    <%
      String pg  =  request.getParameter("path");
      if (pg == null) {pg = "search.jsp";}
        pageContext.forward(pg);
    %>I dont think you need to encode, unless you are experiencing problem????

  • URL Encoding and UTF8

    Hello Friends,
    I have been working on this problem for some time now. I have a web page that has forms fields like first name, last name etc. and then posts the data back to a servlet that writes it into a file that is utf-8 encoded. The web page has charset specified as utf-8. I was assuming that data would be sent back in the url as utf-8. I entered some japanese data copied from a japanese web page. When I looked at the file into which the form data was written I saw that it wasn't even close to utf-8 or unicode encoding of the data I had posted. For eg. I entered a japanese character: '\u4F1A' which is utf-8 encoded as 'E4 BC 9A'. But the data written into the file is '25 45 34 25 42 43 25 39 41'. This is of course because the data is url encoded which is '%E4%BC%9A', since 45 is hex for E, 34 is hex for 4 and so on. Now the question is how is it that I proceed to get the right utf data back. I am using a jrun server. Is there something that I need to set here in order to get the right characters back.

    The UTF-8 encoded sequence of bytes of the character '\u4F1A' is {-E4, -BC, -9A}, and the character '-' is (char)0x2d instead of (char)0x25. And I suppose 25 should be 2d.

  • Sending document to oracle xml gateway web service and body is url encoded

    Hello,
    a question from a complete newbie to web services. I have some code that is sending a soap message to an oracle xml gateway web service. In the soap message the values in the soap body look like &lt ;CNTROLAREA&gt ;
    when I would be expecting <CNTROLAREA>. What I have been told is that the content of the ReceiveDocument element has been url encoded which causes the &lt and to correct it I need to change the paramater type from object to xmlnode and to build the request as an xmldocument. The xmlnode and xmldocument comes from a .net guy so I've been trying to find the equivalent in java but am not having any luck. I have a lot of reading to do but was wondering if someone might be able to point me in the right direction on how to correct the problem. I captured the soap message being sent using tcpmon. Why does the body have the &lt instead of the < as I was expecting and is there an xmldocument type? The header part of the soap message looks as I expect. "><soapenv:Header><ns1:XMLGateway_Header xmlns:ns1="http://xmlns.oracle.com/apps/fnd/XMLGateway"><ns1:MESSAGE_TYPE>XML</ns1:MESSAGE_TYPE>. It is being sent as a com.oracle.xmlns.apps.fnd.XMLGateway.XMLGateway_Header type.
    thanks
    Thanks
    Edited by: twf123 on May 5, 2010 11:59 AM
    Edited by: twf123 on May 5, 2010 12:00 PM

    twf123 wrote:
    What I have been told is that the content of the ReceiveDocument element has been url encoded which causes the &lt and to correct it I need to change the paramater type from object to xmlnode and to build the request as an xmldocument. Where do you change the parameter type?
    The xmlnode and xmldocument comes from a .net guy so I've been trying to find the equivalent in java but am not having any luck. How do you get the data from .net guy? Which interface do you use? What processing do you do after receiving the data?

  • URL Encoding and Decoding in OSB

    Hi,
    Do we have out-of-box solution in OSB to decode XML which is URL encoded and encode XML to URL encoding. If so how can I do it.
    This might be basic question. I am unable to figure out. new to OSB.
    Thanks
    Sham.

    Hi Sham,
    Probably these are what you looking for...
    fn-bea:inlinedXML()
    fn-bea:serialize()
    fn-bea:serialize() to represent an XML document as a string
    fn-bea:inlinedXML() to parses textual XML and returns an instance of the XQuery 1.0 Data Model.
    Supported Function Extensions from Oracle
    http://docs.oracle.com/cd/E23943_01/admin.1111/e15867/xquery.htm#i1101407
    Oracle’s XQuery Implementation
    http://docs.oracle.com/cd/E13162_01/odsi/docs10gr3/xquery/extensions.html
    Cheers,
    Vlad
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts)
    https://forums.oracle.com/forums/ann.jspa?annID=893

  • URL Encode and Decode

    Hi Experts,
    My Oracle Version:
    BANNER                                                                         
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production         
    PL/SQL Release 11.1.0.7.0 - Production                                         
    CORE     11.1.0.7.0     Production                                                     
    TNS for 32-bit Windows: Version 11.1.0.7.0 - Production                        
    NLSRTL Version 11.1.0.7.0 - Production                                         
    5 rows selected.I got the requirement to check any URL encode and decode methods available in common for O racle and PHP,
    Since URL will be encoded in database at the time of retreiving data from database but it will be decoded in PHP without db connection.
    Hope my scenario will be clear to you, is any common function available in oracle and php for this process?

    but escape, unescape just adds %20 for empty space in the URLwell it does a bit more: it escapes all special characters that should not be in a URL, e.g.
    SQL> select utl_url.escape('#^|%µ ') escaped_url from dual
    ESCAPED_URL                                                                    
    %23%5E%7C%25%B5%20                                                             
    1 row selected.Can you give an example of how you want a completely converted url, and why?

  • FF change single quotes in query string for their url-encode form (%27) and I need use single quotes (I don't care about derivated security problems)

    When I try to enter a url like:
    www.example.com?owner=alex's
    the actual URL the FF send is:
    www.example.com?owner=alex%27s
    I need the first option and I don't know hoy to configure it. Could you help me?

    I think that RFC1738 is outdated and you should look at RFC3986 section 2.2:<br>
    "URI producing applications should percent-encode data octets that correspond to characters in the reserved set unless these characters are specifically allowed by the URI scheme to represent data in that component. If a reserved character is found in a URI component and no delimiting role is known for that character, then it must be interpreted as representing the data octet corresponding to that character's encoding in US-ASCII".<br><br>
    I think that in this case there is no special delimiting role or "reserved purpose" for the character to allow the unencoded use. So I think that the behaviour of Firefox is correct.<br>
    http://www.rfc-editor.org/rfc/rfc3986.txt<br>

  • Guestname coming from session, not from parameter, and it's URL-encoded. Need it decoded.

    We have a hosted account for Adobe Connect. When users want to enter a room, they go to a URL like this:
    http://connectpro12345678.na5.acrobat.com/rereview/?launcher=false&guestName=John%20Smith
    This drops them into the meeting room, but the name is listed under Participants as
    John%20Smith
    rather than the desired John Smith.
    I've determined that the URL-encoded name is coming from the session, because when I deleted the BREEZESESSION cookie and hit the meeting room directly, using a URL like:
    https://connectpro12345678.adobeconnect.com/_a963369417/rereview/?launcher=false&guestName =Michael%20Van%20Kleeck
    the guest name is displayed appropriately.
    How can I force Connect to either decode the guestname or to use the guestname from the parameter, rather than the session?
    Thanks!
    -Michael

    You shouldn't be using the naX.acrobat.com URLs. These URLs are redirecting to the new adobeconnect.com URLs, which may be where you are seeing the issues. You shouldn't need to use your account ID (_a963369417) so your links should look like: http://connectpro12345678.adobeconnect.com/review/?launcher=false&guestName=John%20Smith

  • My iPhone 5s on ios 8.1.2 is stuck at Apple logo or recovery mode.. To fix this issue, i need to update it to ios 8.2 through itunes.. I want to ask that my data i.e. Photos and other personal data would be removed after updating it or not..?

    My iPhone 5s on ios 8.1.2 is stuck at Apple logo or recovery mode.. To fix this issue, i need to update it to ios 8.2 through itunes.. I want to ask that my data i.e. Photos and other personal data would be removed after updating it or not..?
    if yes then how can i save my data or get out of recovery mode.. Is there any safe mode or something like that on which i could access my data..
    P.S. I have not taken any backup of my iPhone on itunes..
    Please help me sort out this issue..

    Recovery mode doesn't mean that all your data is already lost. You only lose your data if you restore it.
    When you plug the phone is into iTunes hold down the home button. iTunes may then give you the option JUST to update the software first. This should not get rid of any data.
    However, if iTunes is only giving you the option to RESTORE and update, then you will lose your data I'm afraid.
    Hope that helps!

  • Verizon mades changes in the coding and now Windows Phone 7 is having data issues!!!

    Starting about 3 weeks ago, I stopped receiving text messages and even worse stopped receiving calls yet alone my voicemails.  I have changed not one thing to my phone, everything is exactly the way it was before the issues arised.  Now I have to trick my phone to receive my data by dialing into my voicemail...  And then what do you know, 30 text mesages, 12 voicemails!!!
    The voicemails wont even tell you the date or time stamp (the time the voicemail was received).  After numerous *228 and talking with level 2 over the holidays, I see a huge article on multiple news sites stating Verizon is having data issues...  Dropped calls, loss of data, no signal while all our phone keep showing full bars and 3g.  Verizon stated its only happening on there 4gLTE system and not 3G but thats a load of crap.
    All one has to do is a google search of loss of text messages or voicemails on Verizon and you will see 100's up to 1000's of users like you and me all experiencing the same issues.  And not just with Windows Phone 7, but with there baby Driod and iPhone as well.
    What really ****** me off is that Verizon loves to play the blame game or pass the buck game.  Hard Reset your phone and that will solve the problem...  Yeah Right.  If this was our OS and we updated a driver that changed the OS in the background I can see that being the solution.  But for the 100's or 1000's of users that go to work daily, check there emails and text daily, and haven't changed one thing on the phone... THIS IS UNACCEPTABLE!!!
    Now I read an articile for someone extermely close to Microsoft stating that Verizon turned down Nokia's new 4GLTE phone because they have no faith in the operating system and I have to think that maybe behind the scenes Verizon is trying to force us off Windows Phone 7 platform with data issue behind the scene and try to get us all into the Droid Platform which they make 50% of the cash off the phone just like the iPhone...
    This is a joke, and I am really starting to think about going to ATT and getting the HTC Titan or the new Nokia 900.  I have already research a 3 party app that will allow you to backup and restore your phone.  And just read that Microsoft just put out an ad for backup, restore and cloud backup programmers for this latest feature.
    Verizon the games need to stop, Verizon you need to stand behind this Platform, Verizon you need to provide better service for all us 3G users!!!
    TheJester77

    Starting about 3 weeks ago, I stopped receiving text messages and even worse stopped receiving calls yet alone my voicemails.  I have changed not one thing to my phone, everything is exactly the way it was before the issues arised.  Now I have to trick my phone to receive my data by dialing into my voicemail...  And then what do you know, 30 text mesages, 12 voicemails!!!
    The voicemails wont even tell you the date or time stamp (the time the voicemail was received).  After numerous *228 and talking with level 2 over the holidays, I see a huge article on multiple news sites stating Verizon is having data issues...  Dropped calls, loss of data, no signal while all our phone keep showing full bars and 3g.  Verizon stated its only happening on there 4gLTE system and not 3G but thats a load of crap.
    All one has to do is a google search of loss of text messages or voicemails on Verizon and you will see 100's up to 1000's of users like you and me all experiencing the same issues.  And not just with Windows Phone 7, but with there baby Driod and iPhone as well.
    What really ****** me off is that Verizon loves to play the blame game or pass the buck game.  Hard Reset your phone and that will solve the problem...  Yeah Right.  If this was our OS and we updated a driver that changed the OS in the background I can see that being the solution.  But for the 100's or 1000's of users that go to work daily, check there emails and text daily, and haven't changed one thing on the phone... THIS IS UNACCEPTABLE!!!
    Now I read an articile for someone extermely close to Microsoft stating that Verizon turned down Nokia's new 4GLTE phone because they have no faith in the operating system and I have to think that maybe behind the scenes Verizon is trying to force us off Windows Phone 7 platform with data issue behind the scene and try to get us all into the Droid Platform which they make 50% of the cash off the phone just like the iPhone...
    This is a joke, and I am really starting to think about going to ATT and getting the HTC Titan or the new Nokia 900.  I have already research a 3 party app that will allow you to backup and restore your phone.  And just read that Microsoft just put out an ad for backup, restore and cloud backup programmers for this latest feature.
    Verizon the games need to stop, Verizon you need to stand behind this Platform, Verizon you need to provide better service for all us 3G users!!!
    TheJester77

  • Goods issue date and goods receipt date

    Hi Guys,
                 i was asked to display STO list.They asked me add goods issue date and goods Report date in the o/p columns.So any body can tell me what are the fields for goods issue and goods Receipt date's.?can u guys tell me the Tr code for these fields .?
    Thanks,
    Gopi.

    Hi there,
    I already solve it by myself.
    Actually is i call the initialization twice:
    Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
    Thats what make this problem happened.
    Sorry.
    Best Regards,
    danny

  • Can we open a URL link from an RFC and access the data in the link.?

    Can we open a URL link from an RFC and access the data in the link.
    I have the following scenario.
    I have a URL link and it opens a KM folder in the Portal server and I need to put a PDF file in that KM folder
    Can we do that with the help of an RFC, can we deal with Links in RFC, is there any such FM??
    Regards

    >
    SAP LEARNER wrote:
    > Can we open a URL link from an RFC and access the data in the link.
    >
    > I have the following scenario.
    >
    > I have a URL link and it opens a KM folder in the Portal server and I need to put a PDF file in that KM folder
    >
    > Can we do that with the help of an RFC, can we deal with Links in RFC, is there any such FM??
    >
    > Regards
    I guess you are trying to connect from the R3/ECC to the Portal Server.
    Are these two systems in the same network? Do you have usernames (valid and fully authorized) in both systems? What is the OS on which these two systems are housed?
    Please provide these details to proceed further.
    Regards
    Sabu

  • VPD date issue between 10.1 and 10.2 databases

    I have uncovered an issue today with VPD against date fields. The issue came up at a client site on a 10.2 database. When I got back to the hotel and tried this on my own database, which is 10.1, I got no issue and everything worked ok.
    Therefore, I am asking if anyone is able to try out the following for me on different Oracle databases and platforms and let me know whether it worked for you or not. I'd like to compile a list of database versions and platforms on which the issue occurs.
    Step 1: create this table as a user
    CREATE TABLE TST_DATE AS (
    SELECT 1 PERSON_UID,
    Trunc(SYSDATE) BIRTH_DATE,
    To_Char(Trunc(SYSDATE), 'DD-MON-YYYY') CHAR_DATE,
    123456 TAX_ID,
    'Smith, Michael B.' FULL_NAME FROM dual);
    Step 2: grant select rights on the table
    GRANT SELECT ON TST_DATE TO PUBLIC;
    Step 3: switch your login to SYS and run this script:
    CREATE OR REPLACE FUNCTION F_CHECK_ITEM_TST(p_object_schema in varchar2, p_object_name varchar2)
    RETURN VARCHAR2 IS
    V_PREDICATE VARCHAR2(2000) := '1 = 2';
    BEGIN
    RETURN(V_PREDICATE);
    END F_CHECK_ITEM_TST;
    Step 4: As SYS, run this to grant access rights over the function
    GRANT EXECUTE ON F_CHECK_ITEM_TST TO PUBLIC;
    Step 5: As SYS, run this to enable the policy
    BEGIN DBMS_RLS.ADD_POLICY(
    OBJECT_SCHEMA => 'DRAKE',
    OBJECT_NAME => 'TST_DATE',
    POLICY_NAME => 'SecByTST',
    FUNCTION_SCHEMA => 'SYS',
    POLICY_FUNCTION => 'F_CHECK_ITEM_TST',
    STATEMENT_TYPES => 'SELECT',
    POLICY_TYPE => DBMS_RLS.DYNAMIC,
    SEC_RELEVANT_COLS => 'BIRTH_DATE',
    SEC_RELEVANT_COLS_OPT => DBMS_RLS.ALL_ROWS);
    END;
    Note: in the above policy change the OBJECT_SCHEMA name to be the name of the user who owns the table you created in Step 1
    Step 6: Go into Discoverer Admin and import the table as a new folder.
    Be sure to uncheck the "Date hierarchies" box and set "Default aggregate on data points" to detail. Grant access to any user.
    Step 7: Using Desktop or Plus, log in as that user then try to query the folder with the date not included, there should be no problem.
    Step 8: Now try to query with the date included
    On my 10.2 database I get ORA-24334: no descriptor for this position. This happens when logged into Discoverer as the table owner, EUL owner or any other user. However, when logged into Discoverer as SYS which is exempt from all VPD policies, there is no error when the date is included.
    We tried this in Discoverer Desktop, Plus and Viewer with the same results in all three. We can successfully query the table from SQL*Plus, SQL Developer and TOAD.
    There also seems to be no issue at all with the 10.1 database so there seems to be an issue between Discoverer and the 10.2 database.
    What do you think?
    P.S. to cancel the policy use this script when logged in as SYS:
    EXEC DBMS_RLS.drop_policy(
    OBJECT_SCHEMA => 'DRAKE',
    OBJECT_NAME => 'TST_DATE',
    POLICY_NAME => 'SecByTST');
    This same information is available on my blog in a more readable format here:
    http://learndiscoverer.blogspot.com/2006/12/vpd-date-issue-between-101-and-102.html

    Hi Rod
    Well don't you just love Oracle. Obviously, whatever tests were done for certifying Discoverer against the 10.2 database did not include checking VPD policies. This merits a blog entry from me.
    Your workaround for V_PREDICATE VARCHAR2(2000) := 'BIRTH_DATE=TO_DATE(''01-JAN-0001'')'; works. However, I had to write a new function to do this because my real function was trapping about a dozen items at the same time, some dates, some numbers and some varchars - exactly the way that the Oracle example code shows it in the 10.2 database manual.
    So what I did was to create a new function that only handles dates and added a dedicated policy that works with only that function. Unfortuately, because I have many dates to manage, I was unabe to hard code the BIRTH_DATE so here is what I did:
    V_PREDICATE VARCHAR2(2000) := 'SYSDATE = TO_DATE(''01-JAN-0001'')';
    This works perfectly and Discoverer stopped complaining. It just has two policies on the same table for different data items. Isn't VPD cool? I'm hooked.
    I really appreciate your time and effort on this. Now, let's see what Oracle support make of the issue because I raised a service request last night. No reply yet I'm afraid.
    Best wishes
    Michael

  • I am using PP 2014 CC and it and or Encoder keep crashing.. using iMac computer with Yosemite OS anyone have any ideas about this issue?

    I am using PP 2014 CC and it and or Encoder keep crashing.. using iMac computer with Yosemite OS anyone have any ideas about this issue?

    Hi,
    Please give this a try: Premiere Pro CC, CC 2014, or 2014.1 freezing on startup or crashing while working (Mac OS X 10.9, and later)
    Thanks,
    Rameez

Maybe you are looking for

  • Additional field in the 'Add document' subscreen while creating a Solar doc

    Hi Forum members, I need to add additional fields in the 'Add Document' sub-screen that appears when I create documents in SOLAR01. The subscreen currently has 'Title', 'Documentation Type', 'Status' and 5 radio buttons for 'Object type'. Please advi

  • By selecting the dropdown list a new empty browser tab is getting opened

    Hi, When i try to pass the parameters in Bi report, by selecting the dropdown list a popup(new empty browser tab) is getting opened why is this so. Can anyone help me to sort it out. Edited by: user9093700 on Jul 6, 2012 8:57 AM Edited by: user909370

  • Other programs use iTunes scripting?

    My  pc runs windows 7.  I have 64bit itunes v 10.  When iTunes is open I can't use Firefox.  It won't run scripts.  when I close iTunes it reports other programs are using its scripting.  There is a count down and then iTunes closes.  There after, Fi

  • IVE POSTED THIS 5 TIMES ALREADY N NO 1 HAS SAID ANYHTING

    In my itunes library that symbol 4 itunes radio appears and when i try to clear it it says that itunes has encountered a problem. Then it says that DrWatson Debugger has also encountered a problem. I don't know if it has any realtion but they always

  • Where is my EXPORT dump file ? How to do BRTools off line table reorgan ?

    Hello, Here was my BRTools Export output message : About to export specified tables via Direct Path ... Current user changed to SAPPRD . . exporting table                          CDHDR   60357362 rows exported Export terminated successfully without