All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.thaiopensource.relaxng.impl.NameFormatter Maven / Gradle / Ivy

Go to download

A branch of Jing used by the Nu Html Checker. (Jing is a tool for validating documents against RelaxNG schemas.)

The newest version!
package com.thaiopensource.relaxng.impl;

import com.thaiopensource.xml.util.Name;


public class NameFormatter {
  public static String format(Name name) {
    String localName = name.getLocalName();
    String namespaceUri = name.getNamespaceUri();
    return SchemaBuilderImpl.localizer.message("name_absent_namespace", localName);
    // if (namespaceUri.equals(""))
      // return SchemaBuilderImpl.localizer.message("name_absent_namespace", localName);
    // else
      // return SchemaBuilderImpl.localizer.message("name_with_namespace", namespaceUri, localName);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy