[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] The entity was referenced, but not declared.
Dear all, I'm trying to convert a collection of XLIFF files into TMX. The files contain some HTML named entities, which makes my stylesheet choke: Error on line 8 column 64 of file.xlf: SXXP0003 Error reported by XML parser: The entity "ndash" was referenced, but not declared.: The entity "ndash" was referenced, but not declared. Error SXXP0003 collection(): failed to parse XML file file:/home/souto/Sync/PISA25/Assets/PISA2022/03_Preprocessed_MS/input_dir/file.xlf: org.xml.sax.SAXParseException; systemId: file:/home/souto/Sync/PISA25/Assets/PISA2022/03_Preprocessed_MS/input_dir/file.xlf; lineNumber: 8; columnNumber: 64; The entity "ndash" was referenced, but not declared. collection(): failed to parse XML file file:/home/souto/Sync/PISA25/Assets/PISA2022/03_Preprocessed_MS/input_dir/file.xlf: org.xml.sax.SAXParseException; systemId: file:/home/souto/Sync/PISA25/Assets/PISA2022/03_Preprocessed_MS/input_dir/file.xlf; lineNumber: 8; columnNumber: 64; The entity "ndash" was referenced, but not declared. Even though the preamble of my stylesheet says: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE xsl:stylesheet [ <!ENTITY ndash "–" > <!ENTITY mdash "—" > ]> <xsl:stylesheet ... My question is: Is there any way I can avoid or fix this problem from the XSLT stylesheet without having to modify the input XLIFF files? The example above is with ndash but I believe there must be many HTM named entities in the files. Thanks a lot in advance. Cheers, Manuel
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|