Re: Usage model - no source XML, just api calls

David Bertoni <[email protected]>
Newsgroups gmane.text.xml.xalan.java.user
Message-ID <[email protected]>
Johan Zxcer wrote:
> I disagree that Xalan by definition is doing something that should have to be
> treated specially versus all the other packages I must trust in order to
> build a service.  
How about just pre-parsing the stylesheet yourself and reporting an 
error if the stylesheet contains any extension functions other than the 
ones you allow?

If you really want to get fancy, you could extend Xalan-J's XPath 
parsing code to do this.  Otherwise, you can simply looking for 
namespace bindings that shouldn't be there, since the only way to call 
an extension function is through a namespace.

If you can use C++, instead of Java, you can use Xalan-C, which only 
allows user-provided extension function, making it impossible for users 
to call arbitrary code.

Dave
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.