Anyone working with XML in portlets? How?
Do you work with XML/XSL in a JSP Portlet to build your presentation?
We are having trouble with german Umlauts and want to know a way for XML in portlets in general.
Thomas
Hallo Ingo !
We use the Oracle XML Parser and XSL transformer in a JSP Portlet. The XML is referenced throu a URL from our XML server.
The XSL file is in the portlet directory.
Our Problem is:
Even if we use encoding attributes set to UTF-8 we are not able to display Umlauts correctly. They are not encoded to HTML Umlauts (e.g. ü to ü).
We tested our code with Apache Xalan and Xerces and everything works fine.
I think that Oracle XML parser treats things not as they are recommended by W3C.
Finally we gave up parsing XML with oracle Parser and now use Apache XML/XSL Parsers.
Or do you know a better way?
Thomas
Similar Messages
-
How to work with xml in java ?
Hello everybody. I am trying to read, write and modify xml file in java. But i don't know what is the best method for work with xml file ? Please give me some examples for read, write and modify it.
Thanks in advance.>
Hello everybody. I am trying to read, write and modify xml file in java. But i don't know what is the best method for work with xml file ?>'It depends'. I saw some discussions of XML parsing using different J2SE core XML APIs (the J2SE has a selection of ways to deal with XML) where one API was 20 times faster than the other.
>
... Please give me some examples for read, write and modify it. >Please give me a ponie. ;-)
You will probably need to do a lot of reading, as well as some experimentation, before you decide which XML API is best suited to the particular task you are facing.
>
Thanks in advance.>No worries. -
Is anyone working with large datasets ( 200M) in LabVIEW?
I am working with external Bioinformatics databasesa and find the datasets to be quite large (2 files easily come out at 50M or more). Is anyone working with large datasets like these? What is your experience with performance?
Colby, it all depends on how much memory you have in your system. You could be okay doing all that with 1GB of memory, but you still have to take care to not make copies of your data in your program. That said, I would not be surprised if your code could be written so that it would work on a machine with much less ram by using efficient algorithms. I am not a statistician, but I know that the averages & standard deviations can be calculated using a few bytes (even on arbitrary length data sets). Can't the ANOVA be performed using the standard deviations and means (and other information like the degrees of freedom, etc.)? Potentially, you could calculate all the various bits that are necessary and do the F-test with that information, and not need to ever have the entire data set in memory at one time. The tricky part for your application may be getting the desired data at the necessary times from all those different sources. I am usually working with files on disk where I grab x samples at a time, perform the statistics, dump the samples and get the next set, repeat as necessary. I can calculate the average of an arbitrary length data set easily by only loading one sample at a time from disk (it's still more efficient to work in small batches because the disk I/O overhead builds up).
Let me use the calculation of the mean as an example (hopefully the notation makes sense): see the jpg. What this means in plain english is that the mean can be calculated solely as a function of the current data point, the previous mean, and the sample number. For instance, given the data set [1 2 3 4 5], sum it, and divide by 5, you get 3. Or take it a point at a time: the average of [1]=1, [2+1*1]/2=1.5, [3+1.5*2]/3=2, [4+2*3]/4=2.5, [5+2.5*4]/5=3. This second method required far more multiplications and divisions, but it only ever required remembering the previous mean and the sample number, in addition to the new data point. Using this technique, I can find the average of gigs of data without ever needing more than three doubles and an int32 in memory. A similar derivation can be done for the variance, but it's easier to look it up (I can provide it if you have trouble finding it). Also, I think this funtionality is built into the LabVIEW pt by pt statistics functions.
I think you can probably get the data you need from those db's through some carefully crafted queries, but it's hard to say more without knowing a lot more about your application.
Hope this helps!
Chris
Attachments:
Mean Derivation.JPG 20 KB -
Hi,
How are all of you. Well I am new to Flex. But I have started
building simple applications. One of the top most problem I am
facing is working with XML and Button. Can you please assist me in
this. I am explaining my problem:
I have an external XML file like this:
<Menu>
<button>
<idnt>0</idnt>
<label>General Health</label>
<text>General Health pages is currently under
construction</text>
</button>
<button>
<idnt>1</idnt>
<label>Mental Health</label>
<text>Mental Health pages is currently under
construction</text>
</button>
</Menu>
Now I want to generate Buttons Dynamically from this XML. And
the second thing which is the most problematic is that how I code
it so that when I press the Button labled "General Health", it will
show the same text as in the XML tag coresponding to tag
"<label>General Health</label>" ?
I badly need this. I am realy confused on this. Kindly help
me.
Regards
..::DeXLet's assume that variable "node" contains one element of the
XML. For example,
<button>
<idnt>0</idnt>
<label>General Health</label>
<text>General Health pages is currently under
construction</text>
</button>
such that node.label would be "General Health", node.idnt
would be 0, etc.
You can build a Button like this:
var b:Button = new Button();
b.label = node.label;
b.data = node; // more on this later
b.width = 60;
b.height = 26;
addChild(b); // critical - adds the button to the display
list so you can see it
b.addEventHandler( MouseEvent.CLICK, handleClick );
You must set the button's width and height unless the button
will be in a container that will size its own children (like Tile).
Every Flex component has a data property. You can set it to
whatever you like. For your needs it makes sense to set each
Button's data property to the node it relates to.
Now suppose that code above is in a function, createButton:
private function createButton( node:XML ) : void {
// code from above
Here's how to make all the buttons where "menu" is a variable
that contains your XML:
for(var k:int=0; k < menu.button; k++) { // menu.button is
an XMLList
createButton( menu.button[k] );
Now to handle the event:
private function handleEvent( event:MouseEvent ) : void
var b:Button = event.currentTarget as Button;
trace( b.data.text);
When a button is picked, the description element will print
in the debug console. Replace the trace with whatever code you
need. -
Hello!
Can anyone point me to some resources/turtorials/books etc from where to learn more about working with XML in indesign?
So far all I found on the net are some simple tutorials to make business cards and the like..
I need to make large books (for example, right now i'm working on a cookbook), and i'we seen some amazing examples of what can be achieved using a XML workflow.
Related question: where can i find some documentation about the "aid" namespace (i think that's the correct term? for example: <element aid:pstyle="blahblah">
thanks all.InDesign CS5: Dynamic Publishing Workflows in XML with Jim Maivald (the author of the book mentioned by Steve)
XML Publishing with Adobe InDesign by Dorothy Hoskins
Related question: where can i find some documentation about the "aid" namespace (i think that's the correct term? for example: <element aid:pstyle="blahblah">
Adobe InDesign CS3 and XML: A Technical Reference -- Page 20 -
I need to install Internet Explorer 6 or greater on my iMac (intel processor) running MacOS 10.6.8 to work with a program. How is the best way to accomplish this?
There is no way. IE has not been available for the Mac for years now.
Your only option is to install native Windows and use that - either through a bootcamp dual-boot scenario, or use a virtual machine to run windows in (eg. Parallels or VMWare Fusion). Either way, you will need a full retail install disk for Windows.
P.S. the last version of IE for Mac was for PPC machines, and it was discontinued in 2003. -
Hello, I'm a french Photoshop CC user. My one is in english language, and I would like to work with french language. How can I do to have french language ?
In the CC Desktop app, click the gear > Preferences > App tab > choose Application Language, then install Photoshop CC
Once the install finishes, Photoshop Preferences > Interface > UI Language, change to French, Restart Photoshop. -
My Google search autocomplete me in Firefox does not work anymore. However, it still works with Internet Explorer. How can I fix this so Google gives me search suggestions again?
Solution update: Disabled XULRunner 1.9.1 extension from Add-ons > Extensions. Problem solved.
-
Problem when load more swf files work with xml files into my movie
hi ;
I have one flash file & more of swf files which work with xml files .
when I load one swf file into my flash file and remove it and load anther one on the same movieclip in my flash file it load the old swf file.
when i load one on movieclip and remove it and load anther swf on anther movieclip the file doesn`t work and stoped.
when test my flash file to load and remove swf files without xml file it work fine but when repleaced the swf files with other work with xml files the problem hapend.
thanks;YOu should trace the names of the files that are being targeted for loading to see if they agree with what you expect. If you want help with the coding you will need to show the code that is relevant to your problem (not all of it)
-
Anyone working with eView under JCAPS 5.1.X
Has anyone worked with eView under JCAPS 5.1.X? I am exploring the use of this tool in a project and I would like to talk to someone who has real world experience.
Using eView to uniquely identify the person is a good solution especially when customizing the OTDs to each specific source.
Deployment?
Well, it depends, impossible to make a blanket statement here.
With our case, a dedicated eView (logical host) domain is deployed, another domain is deployed for HL7 messages. JMS queues and topics are the the integration layers between them. Currently, looking into JMS Grid for a logical decoupling and clustering between domains.
Also, going to migrate our eGate SRE messages to JCAPS gradually, the messages which pertain to patient demographic events (ADT) will subscribe to JMS topics wired to eView.
The great thing about JCAPS (J2EE) is to logically partition components wand then deploy as required. For example, going to deploy HL7 message collaborations and eView components to a single domain now because transactions are low.
Designed this without consultants, have many years experience with J2EE software development, my problem is with the limited JCAPS Netbeans IDE functionality - ready for JCAPS 5.2!
Anyway, the eIndex project included with JCAPS, should get you started, forget the "patient" semantics, this is really a person in disguise. -
i m coming from linux platform ... now need my g to work with vim ... how to install g which supports C 0x ... why does not it has repository with apple ... its so easy rather than going to UI ...
tom i have been using ubuntu for c++ project
i use lambda and atomic (c++0x) but now as I am working on MAC not able to use them
installed xcode(4.3) and changed compiler settings to LLVM3.1 but still both features are not available
to compile wanted to have g++ which supports c++0x features ...
new to MAC (2-3 days) so was in rush to solution
let me know if you have some suggestion ...
else will try with eclipse cdt .... -
Anyone worked with customizing the requisition account generator workflow?
Has anyone worked with customizing the requisition account generator workflow?
please let me know
I need help asap.
thanksHi Malla,
Solution here:
http://garethroberts.blogspot.com/2007/08/gl-account-code-combinations-on-fly-key.html
Regards,
Gareth -
I would like to cancel my subscription for Adobe ExportPDF Subscription that I have just signed up for as it doesn't seem to work with my system. How do I do this ?many thanks suslucie
Hi Susan,
I checked using the email you provided, and there's no history of any orders under that email address. (Then, I removed your email address from you post, since this is a public forum and it's best not to broadcast contact information.)
I'll message you privately, and you can send along your email from Adobe if you'd like.
Best,
Sara -
Final cut Pro 10.0.8 was installed on my computer when I got it.
It now will not work with OS Yosemite. How do I update Final cut so I can use it?
I am new to Mac Book Pro so I need help!!!You get FCPX legally only via AppStore; it then gets 'bonded' to your AppleID/Appstore account.
To update, log in with the Account you have purchased it - click update (for free)
If you don't have the Account data, you're not owner of the software. No free drinks updates.
Log in with YOUR ID, click purchase - ring! 300$ ............. -
Until the most recent update when the url that I wanted in the autocomplete location bar was selected, it "went" with no further clicking. Now I have to click the refresh arrow. It won't even work with the return. How can I make it work the old easier way?
cor-el, thank you so much. That fixed it, but does this mean I can't use AVG Safe Search.Is there a substitute? I do like the security (hopefully real) that it offers. What now? How do I get out of Safe Mode?
Sherry
Maybe you are looking for
-
HT201406 My Ipod touch is not working, shows ipod is disabled
HOw can I fix my od touch? It is showing the mensage ipod disabled
-
Drivers issue in Windows 8.1 32 bit for my laptop HP PAVILLION DV6000
Hi some one please help me i had uprgaded my laptop PAVILLION DV6000 to windows 8.1 and i have no sound i think some issues with my sound drivers. somebody please help me to solve it. my product behind laptop is DV6500
-
Multi mapping and File Content Conversion
Hi, I've created a similar interface to the the one in this blog /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible In the Config, I receive a CSV and use FCC in the File Adapter to build the XML file. Because of the mult
-
Two partitions in case of re-install
All, My MBP shat itself yesterday, I had to re-install OSX. Given that I only had 1 partition I can only restore from backup. What I want to do is isolate the OS from data in case I have to re-install again. What I ve got now is a 50gb OSX partition
-
Getting HTTP response code: 404 Not Found while playback
Hi Folks, Am creating a loadtest script on Oracle Empirica application by using web protocol with only 6 steps. While play back am getting the following error Error Code:INVALID_HTTP_RESPONSE_CODE Error Detail: oracle.oats.scripting.modules.http.api.