cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johannes Wechsler" <>
Subject Formatting strings in a xsl
Date Fri, 06 Sep 2002 14:58:30 GMT
I use a webservice to access the Xindice-database. The URL I access is:

The method "xPathQuery" returns the (nearly) the following string:
   <projectName>Test 1</projectName>
     <description>Erstes Projekt</description>
     <projectLeader>Die erste Person</projectLeader>

The code of the xsp which calls the webservice is listed below:

   String key;

   public void start()
      BufferedReader in = new BufferedReader( new InputStreamReader (
webserviceURL.openStream() ) );
      key = "";
      while ( ( s = in.readLine() ) != null )
      { key += s; }

      return key;

   <xsp:expr> start() </xsp:expr>

My problem is that the following xsl doesn't recognize the received string
as a valid xml document and commands like <xsl:value-of
select="projectLeader"/> ignore my string. I want to format the received
string via my xsl, but that doesn't function.

Can anyone help me?


Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message