@@ -33,7 +33,6 @@ public final class CursorRuleGenerator {
3333
3434 /**
3535 * Generates cursor rules by transforming XML with XSLT.
36- * Uses automatic schema detection with fallback.
3736 */
3837 public String generate (String xmlFileName , String xslFileName ) {
3938 return generate (xmlFileName , xslFileName , null );
@@ -87,9 +86,7 @@ private SAXSource createSaxSource(TransformationSources sources, String schemaFi
8786 factory .setValidating (false ); // We'll use schema validation instead
8887
8988 // Load XSD schema - use explicit schema if provided, otherwise use fallback
90- Optional <Schema > schema = schemaFileName != null
91- ? loadXsdSchema (schemaFileName )
92- : loadXsdSchemaWithFallback ();
89+ Optional <Schema > schema = loadXsdSchema (schemaFileName );
9390
9491 if (schema .isPresent ()) {
9592 factory .setSchema (schema .get ());
@@ -167,15 +164,6 @@ private Optional<Schema> loadXsdSchema(String schemaFileName) {
167164 });
168165 }
169166
170- /**
171- * Loads XSD schema from classpath for validation.
172- * Returns Optional to handle missing schema gracefully.
173- * Uses v1.1 schema (direct sections).
174- */
175- private Optional <Schema > loadXsdSchemaWithFallback () {
176- return loadXsdSchema (XSD_FILE_NAME_V1_1 );
177- }
178-
179167 /**
180168 * Custom ErrorHandler for XSD validation errors.
181169 * Provides better error reporting for validation issues.
0 commit comments