Skip navigation
Currently Being Moderated

XSLT file with process_data values

Sep 6, 2011 1:57 AM

Hi there,

 

I have a process that takes in an XML file and some XSLT in another document variable and some process_data values from the main process.

 

Inside this process I would like to invoke the XSLT on the XML and use the process_data values inside the XSLT. This works fantastic if I use the "template" setting for the XSLT and add some XSLT code like: <xsl:apply-templates select="{$/process_data/variableA$}.

 

but if I copy the template and paste it in a xsl-file and tries to give this as input to the process I just get an "javax.xml.TransformerException: A location path was expected, but the following token was encountered: {".

 

I know what the exception means, but how do I avoid this, so I can just create my XSLT (with the references to process_data) and make it work with the XSLT file as an input?

 

I hope that someone has a take on this issue - as it is actually a general question on all services that can use a template...

 

Thanks in advance

 

Kim Christensen

Dafolo A/S

Denmark

 
Replies
  • Currently Being Moderated
    Feb 15, 2012 12:46 AM   in reply to kc@dafolo.dk

    That cannot be done because, your external XSLT file will not be resolved againts the XPATH expressions mentioned within it.

     

    Alternatively you can update the XPATH content using SetValue activity.

     

    Templates values are always resolved.

     

    Nith

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points