[Dspace-tech] Debugging xsl
Hi together, I am currently working on some XSL Files. I am wondering if there is a better way to test/debug changes than: 1. mvn package 2. ant update 3. restart tomcat 4. see if it works How do you do it? Any hints are welcome Regards Christian -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech ___ 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] Debugging xsl
Hi Christian, if you mean you're working on the XMLUI theme XSL files then yes, there is. You can make the changes directly in [dspace]/webapps/xmlui/themes/ and the changes will be in effect as soon as you save the file. In some cases, if you still see the old content, you'll have to clear the Cocoon cache: https://wiki.duraspace.org/display/DSPACE/TechnicalFaq#TechnicalFaq-ClearingCocoon(XMLUI)cache Please, keep in mind that the next ant update will overwrite these files with files from [dspace-src] (actually, it will move your webapps directory to webapps.bak-20140313-1635 and create a new webapps directory), so don't forget to copy your changes to [dspace-src] when you're finished with your changes. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech___ 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] Debugging xsl
Thank you helix, yes i meant the XSL files form the XMLUI. So thanks for the tip that makes it easier. If anyone has more tips how they develop for XMLUI (like debugging XSLT) I would be happy to hear them. Best Christian Am 13.03.2014 16:36, schrieb helix84: Hi Christian, if you mean you're working on the XMLUI theme XSL files then yes, there is. You can make the changes directly in [dspace]/webapps/xmlui/themes/ and the changes will be in effect as soon as you save the file. In some cases, if you still see the old content, you'll have to clear the Cocoon cache: https://wiki.duraspace.org/display/DSPACE/TechnicalFaq#TechnicalFaq-ClearingCocoon(XMLUI)cache https://wiki.duraspace.org/display/DSPACE/TechnicalFaq#TechnicalFaq-ClearingCocoon%28XMLUI%29cache Please, keep in mind that the next ant update will overwrite these files with files from [dspace-src] (actually, it will move your webapps directory to webapps.bak-20140313-1635 and create a new webapps directory), so don't forget to copy your changes to [dspace-src] when you're finished with your changes. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette Am 13.03.2014 16:36, schrieb helix84: Hi Christian, if you mean you're working on the XMLUI theme XSL files then yes, there is. You can make the changes directly in [dspace]/webapps/xmlui/themes/ and the changes will be in effect as soon as you save the file. In some cases, if you still see the old content, you'll have to clear the Cocoon cache: https://wiki.duraspace.org/display/DSPACE/TechnicalFaq#TechnicalFaq-ClearingCocoon(XMLUI)cache https://wiki.duraspace.org/display/DSPACE/TechnicalFaq#TechnicalFaq-ClearingCocoon%28XMLUI%29cache Please, keep in mind that the next ant update will overwrite these files with files from [dspace-src] (actually, it will move your webapps directory to webapps.bak-20140313-1635 and create a new webapps directory), so don't forget to copy your changes to [dspace-src] when you're finished with your changes. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech___ 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] Debugging xsl
Hi Christian, I was struggling with the same problem recently. I'm using Eclipse for development so I installed FileSync plugin ( https://marketplace.eclipse.org/content/filesync) and configured it to copy XSL files to the appropriate webapp subdirectory of the running DSpace instance upon save. Notice that you need to check Project - Build automatically setting for this. This setup worked for most of the XSL files, though I didn't manage to find out why not for all of them. Best regards, Michal On 03/13/2014 04:20 PM, Christian Scheible wrote: Hi together, I am currently working on some XSL Files. I am wondering if there is a better way to test/debug changes than: 1. mvn package 2. ant update 3. restart tomcat 4. see if it works How do you do it? Any hints are welcome Regards Christian -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech ___ 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 -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech ___ 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] Debugging xsl
Hi Michal, perhaps clearing the Cocoon cache (see the link above) would have helped. Did you try it? Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech ___ 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