Re: [Dspace-tech] XSLT 2.0 crosswalk
Hi Ivan, Paul, I've tested the solution below but now I realise that it has to do with crosswalk testing. Is there any solution for using XSLT 2.0 in a dissemination crosswalk, or would this require serious development? FYI DSpace 1.8.2 Regards, Joseph Joseph Greene Research Repository and Systems Librarian James Joyce Library University College Dublin (353 0)1 716 7398 (353 0)1 716 7686 joseph.gre...@ucd.ie http://www.ucd.ie/library http://researchrepository.ucd.ie -Original Message- From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84 Sent: 06 February 2013 10:02 To: Joseph Greene Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] XSLT 2.0 crosswalk Hello Joseph, I just realized I answered a different question than you asked, so please ignore it. And here's the correct URL of the pull request Pascal sent you: https://github.com/DSpace/DSpace/pull/174 You can apply it simply by replacing XSLTDisseminationCrosswalk.java with this new version: https://raw.github.com/tuub/DSpace/1d7dcd281d01f12e4d62a22fc6385bb744a91e1e/dspace-api/src/main/java/org/dspace/content/crosswalk/XSLTDisseminationCrosswalk.java Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] XSLT 2.0 crosswalk
(Sorry Pascal) -- and some answers to my own question, from Helix84 -- http://dspace.2283337.n4.nabble.com/Why-does-DSpace-use-XSLT-1-0-td3750179.html To clarify earlier, I have replaced the file below but not getting any results when I use xslt/xpath 2.0 functions. Perhaps I've missed something. Joseph -Original Message- From: Joseph Greene [mailto:joseph.gre...@ucd.ie] Sent: 13 March 2013 13:11 To: heli...@centrum.sk; p.bec...@tu-berlin.de Cc: dspace-tech@lists.sourceforge.net Subject: RE: [Dspace-tech] XSLT 2.0 crosswalk Hi Ivan, Paul, I've tested the solution below but now I realise that it has to do with crosswalk testing. Is there any solution for using XSLT 2.0 in a dissemination crosswalk, or would this require serious development? FYI DSpace 1.8.2 Regards, Joseph Joseph Greene Research Repository and Systems Librarian James Joyce Library University College Dublin (353 0)1 716 7398 (353 0)1 716 7686 joseph.gre...@ucd.ie http://www.ucd.ie/library http://researchrepository.ucd.ie -Original Message- From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84 Sent: 06 February 2013 10:02 To: Joseph Greene Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] XSLT 2.0 crosswalk Hello Joseph, I just realized I answered a different question than you asked, so please ignore it. And here's the correct URL of the pull request Pascal sent you: https://github.com/DSpace/DSpace/pull/174 You can apply it simply by replacing XSLTDisseminationCrosswalk.java with this new version: https://raw.github.com/tuub/DSpace/1d7dcd281d01f12e4d62a22fc6385bb744a91e1e/dspace-api/src/main/java/org/dspace/content/crosswalk/XSLTDisseminationCrosswalk.java Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] XSLT 2.0 crosswalk
On Wed, Mar 13, 2013 at 2:37 PM, Joseph Greene joseph.gre...@ucd.ie wrote: (Sorry Pascal) -- and some answers to my own question, from Helix84 -- http://dspace.2283337.n4.nabble.com/Why-does-DSpace-use-XSLT-1-0-td3750179.html To clarify earlier, I have replaced the file below but not getting any results when I use xslt/xpath 2.0 functions. Perhaps I've missed something. OK, this mixes several different things, so I'll try to clear up some confusion. Most importantly, DSpace uses XSLT in several places independently. My question was about XSLT 2.0 in XMLUI. Your question is about XSLT 2.0 in a dissemination crosswalk. Which XSLT processor each of these features use is independently defined. What they have in common is that (AFAIK) Saxon is the only Java XSLT processor which supports XSLT 2.0. Now, about XSLT processor in dissemination crosswalk. The transformation is done via the JDOM library: https://github.com/DSpace/DSpace/blob/dspace-1.8.2/dspace-api/src/main/java/org/dspace/content/crosswalk/XSLTDisseminationCrosswalk.java#L42 It seems this can be changed. Here's what a quick search reveals: http://www.jdom.org/pipermail/jdom-interest/2005-September/015030.html (Michael Kay is the author of Saxon and an authority on XSLT). Also remember to put Saxon in your classpath (in this case [dspace]/lib should do because it's in dspace-api module). Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] XSLT 2.0 crosswalk
Hello Joseph, you probably read the article in the wiki about crosswalks and how to test XSLT dissemination crosswalk (https://wiki.duraspace.org/display/DSPACE/XsltCrosswalk#XsltCrosswalk-TestingDisseminationCrosswalks). Currently it is not possible to test them neither with DSpace 3.0 nor with DSpace 3.1, but it is easy to backport the solution coming with DSpace 4.0. It's just one file to change, you can find the changes in this pull request: https://wiki.duraspace.org/display/DSPACE/XsltCrosswalk#XsltCrosswalk-TestingDisseminationCrosswalks. Regards, Pascal -Original Message- From: Joseph Greene [mailto:joseph.gre...@ucd.ie] Sent: Tuesday, February 05, 2013 3:36 PM To: heli...@centrum.sk Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] XSLT 2.0 crosswalk Many thanks Helix84 Sounds time consuming... I may consider raising this with our contractor, who are always keen to donate code back to the community. Best regards, Joseph -Original Message- From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84 Sent: 05 February 2013 14:27 To: Joseph Greene Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] XSLT 2.0 crosswalk On Tue, Feb 5, 2013 at 1:19 PM, Joseph Greene joseph.gre...@ucd.ie wrote: Does anyone know if it is possible to use xslt 2.0 in the xslt crosswalk plugin? Documentation only seems to point to xslt 1.0. Unfortunately not, this is a TODO task: [1] There is info there in the last comment about how to modify Cocoon to support XSLT 2.0. This will require you to rebuild DSpace's Cocoon dependency from our repository (this one: [2]) and then rebuild DSpace using your locally modified Cocoon artifact (from your local Maven repo). If you attempt to do that, please report back with your results. Thanks. [1] https://jira.duraspace.org/browse/DS-995 [2] https://github.com/DSpace/dspace-cocoon-servlet-service-impl Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] XSLT 2.0 crosswalk
Hello Joseph, I just realized I answered a different question than you asked, so please ignore it. And here's the correct URL of the pull request Pascal sent you: https://github.com/DSpace/DSpace/pull/174 You can apply it simply by replacing XSLTDisseminationCrosswalk.java with this new version: https://raw.github.com/tuub/DSpace/1d7dcd281d01f12e4d62a22fc6385bb744a91e1e/dspace-api/src/main/java/org/dspace/content/crosswalk/XSLTDisseminationCrosswalk.java Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] XSLT 2.0 crosswalk
Thanks again, sounds much more do-able. Do you think this will work on DSpace 1.8.2? Are there conflicts with Java version for example? Joseph -Original Message- From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84 Sent: 06 February 2013 10:02 To: Joseph Greene Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] XSLT 2.0 crosswalk Hello Joseph, I just realized I answered a different question than you asked, so please ignore it. And here's the correct URL of the pull request Pascal sent you: https://github.com/DSpace/DSpace/pull/174 You can apply it simply by replacing XSLTDisseminationCrosswalk.java with this new version: https://raw.github.com/tuub/DSpace/1d7dcd281d01f12e4d62a22fc6385bb744a91e1e/dspace-api/src/main/java/org/dspace/content/crosswalk/XSLTDisseminationCrosswalk.java Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] XSLT 2.0 crosswalk
On Wed, Feb 6, 2013 at 1:37 PM, Joseph Greene joseph.gre...@ucd.ie wrote: Thanks again, sounds much more do-able. Do you think this will work on DSpace 1.8.2? The file location changed a little but it should work just the same. Are there conflicts with Java version for example? No, I wouldn't expect anything like that. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] XSLT 2.0 crosswalk
Does anyone know if it is possible to use xslt 2.0 in the xslt crosswalk plugin? Documentation only seems to point to xslt 1.0. Regards, Joseph Joseph Greene Research Repository and Systems Librarian James Joyce Library University College Dublin (353 0)1 716 7398 (353 0)1 716 7686 joseph.gre...@ucd.ie http://www.ucd.ie/library http://researchrepository.ucd.ie -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] XSLT 2.0 crosswalk
On Tue, Feb 5, 2013 at 1:19 PM, Joseph Greene joseph.gre...@ucd.ie wrote: Does anyone know if it is possible to use xslt 2.0 in the xslt crosswalk plugin? Documentation only seems to point to xslt 1.0. Unfortunately not, this is a TODO task: [1] There is info there in the last comment about how to modify Cocoon to support XSLT 2.0. This will require you to rebuild DSpace's Cocoon dependency from our repository (this one: [2]) and then rebuild DSpace using your locally modified Cocoon artifact (from your local Maven repo). If you attempt to do that, please report back with your results. Thanks. [1] https://jira.duraspace.org/browse/DS-995 [2] https://github.com/DSpace/dspace-cocoon-servlet-service-impl Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] XSLT 2.0 crosswalk
Many thanks Helix84 Sounds time consuming... I may consider raising this with our contractor, who are always keen to donate code back to the community. Best regards, Joseph -Original Message- From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84 Sent: 05 February 2013 14:27 To: Joseph Greene Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] XSLT 2.0 crosswalk On Tue, Feb 5, 2013 at 1:19 PM, Joseph Greene joseph.gre...@ucd.ie wrote: Does anyone know if it is possible to use xslt 2.0 in the xslt crosswalk plugin? Documentation only seems to point to xslt 1.0. Unfortunately not, this is a TODO task: [1] There is info there in the last comment about how to modify Cocoon to support XSLT 2.0. This will require you to rebuild DSpace's Cocoon dependency from our repository (this one: [2]) and then rebuild DSpace using your locally modified Cocoon artifact (from your local Maven repo). If you attempt to do that, please report back with your results. Thanks. [1] https://jira.duraspace.org/browse/DS-995 [2] https://github.com/DSpace/dspace-cocoon-servlet-service-impl Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette