cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vlad Golodov" <v...@top.ee>
Subject parsing xml code
Date Mon, 28 Feb 2005 09:41:10 GMT
Hi All,

I have a web service, which returns me code like that:

----------------------------------------------------------------------------
--
<pcomponentobjectOut xsi:type="ns2:DBConnection1_ComponentObjectUser">
  <componentClob xsi:type="xsd:string"><contact> <name>Chris</name>
<surname>Lautre</surname> <address>Plomipuu 16</address>
<email>clautre@datanet.ee</email> <phone></phone> </contact>
<contact>
<name>Vlad</name> <surname>Golodov</surname> <address>Paasiku
22 -
155</address> <email>vlad@top.ee</email> <phone>+37256639190</phone>
</contact></componentClob>
  <componentId xsi:type="xsd:decimal">97</componentId>
  <componentName xsi:type="xsd:string">Address Book For
Other</componentName>
  <componentType xsi:type="xsd:string">ADDRESSBOOK</componentType>
  <dateCreated
xsi:type="xsd:dateTime">2005-02-21T11:46:50.000Z</dateCreated>
  <dateUpdated xsi:type="xsd:dateTime" xsi:nil="true" />
  <description xsi:type="xsd:string">New Address Book For
Other</description>
  <groupId xsi:type="xsd:decimal">11</groupId>
  <newPosts xsi:type="xsd:string" xsi:nil="true" />
  <ownerUserName xsi:type="xsd:string">clautre</ownerUserName>
  </pcomponentobjectOut>
----------------------------------------------------------------------------
--

In xslt I need to parse componentClob and iterate through the contact tags.

That code gives me the content of the componentClob:

----------------------------------------------------------------------------
-
<xsl:template match="*/return/pcomponentobjectOut">
  <xsl:value-of select="componentClob" disable-output-escaping="yes"/>
</xsl:template>
----------------------------------------------------------------------------
-

I was trying to iterate through the content of clob, but all was vainly.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message