# AUTHOR <EMAIL@ADDRESS>, YEAR.
# 
# Translators:
# Jérôme Fenal <jfenal@gmail.com>, 2013
msgid ""
msgstr ""
"Project-Id-Version: Defensive Coding Guide\n"
"POT-Creation-Date: 2013-03-12T03:19:45\n"
"PO-Revision-Date: 2013-03-24 17:30+0000\n"
"Last-Translator: Jérôme Fenal <jfenal@gmail.com>\n"
"Language-Team: French <trans-fr@lists.fedoraproject.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. Tag: programlisting
#, no-c-format
msgid ""
"\n"
"SchemaFactory factory = SchemaFactory.newInstance(\n"
"        XMLConstants.W3C_XML_SCHEMA_NS_URI);\n"
"\n"
"// This enables restrictions on the schema and document\n"
"// complexity.\n"
"factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);\n"
"\n"
"// This prevents resource resolution by the schema itself.\n"
"// If the schema is trusted and references additional files,\n"
"// this line must be omitted, otherwise loading these files\n"
"// will fail.\n"
"factory.setResourceResolver(new NoResourceResolver());\n"
"\n"
"Schema schema = factory.newSchema(schemaFile);\n"
"Validator validator = schema.newValidator();\n"
"\n"
"// This prevents external resource resolution.\n"
"validator.setResourceResolver(new NoResourceResolver());\n"
"\n"
"validator.validate(new SAXSource(new InputSource(inputStream)));\n"
msgstr "\nSchemaFactory factory = SchemaFactory.newInstance(\n        XMLConstants.W3C_XML_SCHEMA_NS_URI);\n\n// Ceci active les restrictions sur la complexité de schéma\n// et de document.\nfactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);\n\n// Ceci évite la résolution de ressources par le schéma\n// lui-même.\n// Si le schéma est digne de confiance et qu'il fait référence à des\n// fichiers additionnels, cette ligne doit être omise, sinon le\n// chargement de ces fichiers échouera.\nfactory.setResourceResolver(new NoResourceResolver());\n\nSchema schema = factory.newSchema(schemaFile);\nValidator validator = schema.newValidator();\n\n// Ceci évite la résolution de ressource externe.\nvalidator.setResourceResolver(new NoResourceResolver());\n\nvalidator.validate(new SAXSource(new InputSource(inputStream)));\n"
