Hi Philippe,

If you are using an XSLTInputsource, your file input must be system identifier (reference URI).    If your file name contains reserved characters, you must escape them:  i.e. replace '#' with '%23'.   For more details about what is allowed/not allowed see: http://www.w3.org/TR/2004/REC-xml-20040204/#dt-sysid

-Matt.




"Philippe Lambert" <[EMAIL PROTECTED]>

10/26/2004 11:02 AM

Please respond to
xalan-c-users

To
<[email protected]>
cc
[EMAIL PROTECTED]
Subject
illegal character in file name





We experienced a problem while trying to use this code:

XMLPlatformUtils::Initialize();
XalanTransformer::initialize();

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?


Thank you


Philippe Lambert
Informaticien
SolVision
2111, Boul. Fernand-Lafontaine, Suite 130
Longueuil (Qu�bec)
Canada, J4G 2J4
Tel.: (450) 679-9542, poste 231
Fax: (450) 679-9477
Email: [EMAIL PROTECTED]



Attachment: winmail.dat
Description: Binary data

Reply via email to