[jdom-interest] Newbie Namespace question
    MarkW 
    markw at wilsoncom.de
       
    Wed Dec  5 10:29:28 PST 2001
    
    
  
Hi,
how can i generate this:
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
I tried
  public final static String FOROOT =
"\"http://www.w3.org/1999/XSL/Format\"";
  ....
  Namespace nsFO = Namespace.getNamespace( "fo" );
  fop = new Element( "root", nsFO );
  fop.setAttribute( "fo", FOROOT, Namespace.getNamespace( "xmlns" ) );
but get the error:
.....
org.jdom.IllegalNameException: The name "" is not legal for JDOM/XML
attribute n
amespaces: An attribute namespace without a prefix can only be the
NO_NAMESPACE
namespace.
TIA
Mark
    
    
More information about the jdom-interest
mailing list