~zorba-coders/zorba/bug955040

« back to all changes in this revision

Viewing changes to src/com/zorba-xquery/www/modules/xsl-fo.xq.src/xslfo.cpp

  • Committer: mbrantner
  • Date: 2011-08-16 23:17:14 UTC
  • Revision ID: svn-v4:8046edc3-af21-0410-8661-ec7318497eea:modules/data-formatting/trunk:11699
Tags: zorba-2.0.2
- removed file module dependency from xsl-fo module
- fixed query admin.xq (adapted to new annotations and scripting draft). The test was still marked as expected to fail although it was fixed already.

Show diffs side-by-side

added added

removed removed

Lines of Context:
252
252
ItemSequence_t GeneratePDFFunction::evaluate(const ExternalFunction::Arguments_t& args) const
253
253
{
254
254
  Item classPathItem;
 
255
  // assemble classpath (list of path concatenated with ":" or ";")
255
256
  Iterator_t lIter = args[2]->getIterator();
256
257
  lIter->open();
257
 
  lIter->next(classPathItem);
 
258
  std::ostringstream lClassPath;
 
259
  while (lIter->next(classPathItem))
 
260
  {
 
261
    lClassPath << classPathItem.getStringValue() << File::getPathSeparator();
 
262
  }
258
263
  lIter->close();
 
264
 
259
265
  lIter = args[0]->getIterator();
260
266
  lIter->open();
261
267
  Item outputFormat;
264
270
  jthrowable lException = 0;
265
271
  static JNIEnv* env;
266
272
  try {
267
 
    env = JavaVMSingelton::getInstance(classPathItem.getStringValue().c_str())->getEnv();
 
273
    env = JavaVMSingelton::getInstance(lClassPath.str().c_str())->getEnv();
268
274
    jstring outFotmatString = env->NewStringUTF(outputFormat.getStringValue().c_str());
269
275
    // Local variables
270
276
    std::ostringstream os;