4 Replies Latest reply on Jan 28, 2013 7:29 AM by Rahul Razdan

    Seam3 or CDI equivalent for org.jboss.seam.core.Interpolator

    Ian Hands Newbie

      Does Seam3/CDI expose access to a class that I can use for Interpolation?


      In Seam2 I was using org.jboss.seam.core.Interpolator.interpolate() to interpolate XML files (read from disk) before transformation and publishing (so that I can xsl:sort on interpolated values).


      What the end goal here is to be able to do something like:



      public String getLocalizedXml() {
              // String xml = FileUtils.readFileToString(new File("/foo.xml"));
              String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><foo><bar>#{messages['foo.bar']}</bar></foo>";
              return Interpolator.instance().interpolate(xml);
      }