Skip to Content
0
Former Member
Oct 20, 2005 at 07:38 AM

XML form: concatinating data fields in "output views"

30 Views

Hi,

We are looking for a way to concatinate datafields/strings in the "show" XML forms. In our case we have 2 datafields in the datastructure: "picture" and "size". These 2 datafields will be combined with the servername of a media server to provide the URL for pictures in XML form articles.

As an example:

<picture>image1.jpg</picture>

<size>200</size>

will result in the URL:

http://<mediaserver>/<picture>?format=<size>

I see 2 ways this can be done:

- concatinating the strings in the input form for the picture that is to be shown

- saving the concatinated urlstring in an own datafield whitch is used as the picture url

Can anyone help out with how we can concatinate datafields and strings like this?

Can this alternatively be done in the xslt files?

best regards,

Bjorn