[jdom-interest] finding xml-stylesheet declarations

Bruce Altner baltner at hq.nasa.gov
Tue Aug 13 15:13:22 PDT 2002


I'm looking to use JDOM to pull out the value of an internal stylesheet 
reference but as I scan the API I don't see an obvious way to do this. My 
first try was to use a processing instruction filter, e.g.,

       SAXBuilder sax = new SAXBuilder();
       Document doc = sax.build(xmlFile);
       Filter filter = new ContentFilter(ContentFilter.PI);

but of course xml-stylesheet declarations aren't processing instructions. 
But they're not Element, CDATA, or Text either. So what are they and is 
there a method in the API that will allow me to retrieve its value 


More information about the jdom-interest mailing list