The __url()__ function doesn't require that you prefix the internal path with $base_url.

https://api.drupal.org/api/drupal/includes%21common.inc/function/url/7

Perhaps this will work?
```php
$new_ds->setContentFromUrl(url($cwrc_src_path . '/schema/CWRC-TEIBasic.rng'));
```