public string GetPageText(TextResource textResource, TextFormatEnumContract format) { var transformation = GetTransformationOrDefault(format, BookTypeEnum.Edition); using (var ssc = m_communicationProvider.GetSearchServiceClient()) { var project = textResource.Resource.Project; var bookVersion = textResource.BookVersion; //var result = ssc.GetBookPageByXmlId(project.ExternalId, bookVersion.ExternalId, textResource.ExternalId, "pageToHtml.xsl", outputFormat, ResourceLevelEnumContract.Shared); // TODO dynamically resolve transformation type var result = ssc.GetBookPageByXmlId(project.ExternalId, bookVersion.ExternalId, textResource.ExternalId, transformation.Name, transformation.OutputFormat, transformation.ResourceLevel); return(result); } }