0

A coworker is having problems generating the search for a Chinese help system in the Apple Help Indexer 4.3. The HTML pages are encoded as GB2312. When she creates the index, she gets many “NSXMLParserErrorDomain” errors and an error that the action cannot be finished.

She’s indexing the help on Mavericks 10.9.5.

Has anyone ever run across this problem?

3
  • Your files are not XHTML - you need to fix that – mmmmmm Oct 14 '15 at 14:03
  • The files use the XHTML Transitional DTD: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> – Sheila Oct 14 '15 at 17:27
  • Do the files verify against that DTD - i.e. the header says XHTML but are they really XHTML? – mmmmmm Oct 14 '15 at 17:49
0

Files to be used have to be valid XHTML files and have to verify against the XHTML DTD

From Apple's Authoring Apple Help Document

you need to create HTML files for your help pages. To ensure that your help displays properly in Help Viewer, your help files should comply with the HTML 4.01 specification. Your main file—which contains the AppleTitle meta tag—should conform to the XHTML 1.0 specification.

As the main file is XHTML Apple uses the faster XML parser for it, which Uses Objective C classes beginning with NSXML and errors (e.g. non valid or verified text) will raise NSXMLParserErrorDomain errors.

1
  • In the past, we've generated the help index with the same invalid help pages, but I can see where the invalidity would be a problem. Could there be any other issues? – Sheila Oct 15 '15 at 12:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .