Yes, of course, URI. I was out of my mind. Explicit construction was for illustration only, but thank you for the advice anyway.
Thanks a lot both of you. Phil -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 26 octobre, 2004 12:14 To: [email protected] Subject: Re: illegal character in file name > 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
