Search

Hi Im currently using Symphony get some data in XML (for list wich will be layouted with InDesign) So i have a field called wich are seperated by spaces. I want to transform the spaces to a on-quarter of an em space wich ist special char  

I really dont know how to do it. I guess it will be possible! Can somebody help`?

Can you give an example?

Did you mean like this?

<xsl:variable name="spaces" select="translate($subject, '+', ' ')" />

This replaces all instances of + with a space in the variable named “subject”.

Sorry! Have problems to describe this problem… But scottkf give the solution Thank you for that! The translate can also be combined with

<xsl:value-of select="translate($sunject,'+',' ')" />

i applied both underline and strike-through for text in ODT file..while reading its content.xml, i cant write template in xslt to make both styles to appear in output html..can anyone guide me

You’ll have to be a bit more specific. Please pastie your XML and XSLT and someone will try to help.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details