Hi helix84,

The only reason I'm aware of is that Apache Cocoon (which XMLUI is built 
on) by default only supported XSLT 1.0 at the point in time when XMLUI 
was actually developed.

Many of those dependencies you noted are actually default dependencies 
of Apache Cocoon.

Since then, it sounds like Cocoon can be patched/configured to support 
XSLT 2.0, as least according to this email thread I found (skim to 
bottom of thread):

http://comments.gmane.org/gmane.text.xml.cocoon.user/68284

There's also various pages on the web which detail how to switch Cocoon 
to use Saxon instead of the default Xalan:
http://blog.reverycodes.com/archives/000034.html

So, it sounds like the XMLUI would need to update its sitemaps & Cocoon 
settings to properly support XSLT 2.0.

In any case, these seems like it might be a worthwhile change to 
investigate.  I agree, it'd be nice to upgrade XMLUI to support XSLT 2.0.

If you are willing to do so, I'd suggest opening a JIRA ticket with this 
information.  That way we can start to track the work, and add 
notes/hints to that ticket.

- Tim

On 8/17/2011 9:50 AM, helix84 wrote:
> Hello,
>
> I'm currently doing some customizations in XMLUI and on every step I
> find myself using XSLT 1.0 workarounds while it would be much easier
> to use XSLT 2.0. I want to ask why DSpace (or Cocoon or whatever
> component) still uses XSLT 1.0?
>
> I tried to detect if I can just change the stylesheet to
> version="2.0", but it doesn't seem to work. I tried to detect
> supported XSLT version with this XSLT fragment:
> http://www.oxygenxml.com/archives/xsl-list/200710/msg00002.html
> and it seems DSpace uses xalan-j. But the XMLUI error messages
> sometimes output "org.xml.sax.SAXParseException" and sometimes
> "javax.xml.transform.TransformerException" (here it mentions xalan in
> the stacktrace). So which parser does DSpace use, Xalan (which seems
> to only support XSLT 1.0) or Saxon (which supports XSLT 2.0)? Or does
> it use Xalan only for XPath? I'm not really at home in this, so please
> explain.
>
> Regards,
> ~~helix84
>
> ------------------------------------------------------------------------------
> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
> user administration capabilities and model configuration. Take
> the hassle out of deploying and managing Subversion and the
> tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to