Sergey, I haven't seen any replies to your message. I believe the answer to your question is "no". Using the JAXP API this is definitely not supported and, to the best of my knowledge, there's no internal API to do that (Is this right Joe K?). The internal DOM implementation used by Xalan (interpreter and compiler) is located in the package org.apache.xml.dtm. Depending on the complexity of your stylesheets, you may be able to do some form of static analysis to determine (typically with less precision) the information you need.
Hope this helps. -- Santiago ----- Original Message ----- From: "Sergey Skugarev" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 17, 2003 5:11 PM Subject: Interrogation of Transformer object > Hello Gentlemen, > > Is that possible to query Transformer object somehow to find out > list of nodes that actually accessed from that particular > Transformer? > > In our application we have XML generation subsystem that > allows us bypass generation of XML subtrees based on XPath-like > filters. For now we set up filters manually in configuration file. > For example if we know that XSL stylesheet does not use some path, > i.e. never selects node values from that subtree, etc., we exclude > that node from XML (generation routine skips that node). > > We need to be able to set these filters automatically, and need > a way to interrogate Transformer for list of used nodes. > > I tried to post this question to xalan-j-users list, but did not get any > response, please accept my apologies if it is not appropriate for this list. > > Thank you, > Sergey Skugarev > > JavaRealm Software > http://www.javarealm.com > mailto:[EMAIL PROTECTED] > >
