~zorba-coders/zorba/phpapi

« back to all changes in this revision

Viewing changes to bin/zorbacmd.cpp

  • Committer: Tarmac
  • Author(s): Matthias Brantner
  • Date: 2012-03-12 18:00:11 UTC
  • mfrom: (10715.1.2 zorba)
  • Revision ID: tarmac-20120312180011-xiv59palqea1pgew
Fixed bug #952829 (Nondeterministic annotation doesn't seem to be checked) Approved: Matthias Brantner, William Candillon

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
  zorba::DynamicContext* aDynamicContext,
198
198
  const ZorbaCMDProperties& aProperties)
199
199
{
200
 
  XmlDataManager* lXmlMgr = zorba->getXmlDataManager();
201
200
  if ( aProperties.contextItem().size() != 0 ) {
 
201
    XmlDataManager* lXmlMgr = zorba->getXmlDataManager();
202
202
    std::ifstream lInStream(aProperties.contextItem().c_str());
203
203
    Item lDoc = lXmlMgr->parseXML(lInStream);
204
204
    aDynamicContext->setContextItem(lDoc);
214
214
    {
215
215
      if ((*lIter).inline_file)
216
216
      {
 
217
        XmlDataManager* lXmlMgr = zorba->getXmlDataManager();
217
218
        std::ifstream lInStream((*lIter).var_value.c_str());
218
219
        Item lDoc = lXmlMgr->parseXML(lInStream);
219
220
        aDynamicContext->setVariable((*lIter).var_name, lDoc);