> std::string strFile = "X:\dir\Report-#SeqNbr001.xml";
> //... other variables decl 
> 
> int iParseResult  =
> aXalanTransformer.parseSource(XSLTInputSource(strFile.c_str()),
> theParsedSource, useXercesDOM);
> if ( iParseResult != 0)
> {
>                //error management 
> }
> 
> 
> A error is signaled when the file name contains a (pound) # character. 
Our
> OS (win 2000) doesn't prohibit this character in path, so I'm surprised
> Xalan does. 
> 
> Is it a known limitation?  Is there a list of prohibited characters?

Xalan-C accepts URIs, not file names, and '#' is not allowed in a URI.

If you want to support files, you can use std::ifstream and std::ofstream 
with XSLTInputSource and XSLTResultTarget.

> int iParseResult  =
> aXalanTransformer.parseSource(XSLTInputSource(strFile.c_str()),

Note also you do not need to explicitly create an XSLTInputSource, since 
the compiler will automatically call the constructor for you.

Dave

Reply via email to