how can I listen a event all time ?
HI everyone: I used EventAdmin send a event , and I want I am able to listen is all time , however , some time the service who listened the event will jion backlist and never listen the event after. How to handle it? thanks. 2009-02-16 yanjie
[jira] Created: (SLING-857) Support XSL transformations when importing XML for initial-content
Support XSL transformations when importing XML for initial-content -- Key: SLING-857 URL: https://issues.apache.org/jira/browse/SLING-857 Project: Sling Issue Type: New Feature Components: JCR Contentloader Reporter: Vidar S. Ramdal Assignee: Vidar S. Ramdal Priority: Minor Fix For: JCR Contentloader 2.0.4 As described at http://markmail.org/thread/qxi6qw77vgymrdim Implementing support for XSL transformations while loading initial-content XML, by looking for the xml-stylesheet processing instruction. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
Re: Pipeline support
Hi Felix, Yes. I think there are multiple options for the input * apply standard Sling processing as in RequestDispatcher.include(resource, resourceTypeOverWrite) I´m not sure what you mean with this case. I understand, the pipeline source would be the XML expressed result of resolving another Sling resource. Right?. We´d have something like this: RequestDispatcher dispatcher = request.getRequestDispatcher(generatorResourceAbsPath); dispatcher.include(request, response); * take the contents as in Resource.adaptTo(InputStream) * take the XML-Export (docview probably) These other cases would act over the current resolved resource, right?. In the other hand, I´m thinking about implementing a partial (or total) support for XProc [1] and using cocoon-pipeline [2] behind the scenes. WDYT? BR, Juanjo. [1] http://www.w3.org/TR/xproc/ [2] http://svn.eu.apache.org/repos/asf/cocoon/cocoon3/trunk/cocoon-pipeline
[jira] Closed: (SLING-858) RepositoryClassLoaderProviderImpl does not handle bind/unbind repository correctly
[ https://issues.apache.org/jira/browse/SLING-858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler closed SLING-858. -- Resolution: Fixed Removed the bind/unbind methods in revision 744921 and let the scr plugin generate correct implementations for us. RepositoryClassLoaderProviderImpl does not handle bind/unbind repository correctly -- Key: SLING-858 URL: https://issues.apache.org/jira/browse/SLING-858 Project: Sling Issue Type: Bug Components: JCR Affects Versions: JCR Classloader 2.0.2 Reporter: Carsten Ziegeler Assignee: Carsten Ziegeler Fix For: JCR Classloader 2.0.4 The current implementation just resets the instance variable repository to null if the unbind happens. However, the unbind can happen after the new bind! -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
Re: option overwrite:=true
Hi, the node structure is nt:unstructured. (for every node in my content). I have this error only, if I have this option in pom.xml. It's cuious. /**/ Best regards / S pozdravem Vladislav Krejčiřík http://www.vkrejcirik.info Alexander Klimetschek napsal(a): 2009/2/14 vkrejcirik vkrejci...@gmail.com: Hi, I have problem with this option. When I get this option to my pom.xml, I have this error in log: C:\DOCUME~1\KREJCI~1\LOCALS~1\Temp\install7463173247712030463.tmp] org.apache.sling.jcr.contentloader.internal.Loader Cannot load initial content for bundle org.apache.servicemix.smx-sling.servicemix-sling-console : no definition found in parent node's node type for new node: no matching child node definition found for {}servicemix javax.jcr.nodetype.ConstraintViolationException: no definition found in parent node's node type for new node: no matching child node definition found for {}servicemix: no matching child node definition found for {}servicemix at org.apache.jackrabbit.core.NodeImpl.internalAddChildNode(NodeImpl.java:752) at org.apache.jackrabbit.core.NodeImpl.internalAddNode(NodeImpl.java:718) at org.apache.jackrabbit.core.NodeImpl.internalAddNode(NodeImpl.java:665) at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1987) at org.apache.sling.jcr.contentloader.internal.Loader.createNode(Loader.java:470) at org.apache.sling.jcr.contentloader.internal.Loader.createNode(Loader.java:416) pom.xml : Sling-Initial-Content initial-content;overwrite:=true /Sling-Initial-Content When I remove this option, everything is ok. Do you have any idea? What is the node structure that you have in initial-content? It looks like there is a nt:folder node and below you want to add an arbitrary child node servicemix, which is not possible with nt:folder, because it only allows nt:hierarchyNode as children. You can add a mixin that adds residual child nodes (*), ie. use sling:Folder instead of nt:folder, or change your nt:folder to nt:unstructured, but non-nt:folder/nt:file nodes won't be visible over webdav. Regards, Alex
documentation for server-side ECMAscript
Hi, can I ask you, if it exists any documentation or examples of server-side ECMAscript which is uses for rendering of content? -- /**/ Best regards / S pozdravem Vladislav Krejčiřík http://www.vkrejcirik.info
Re: documentation for server-side ECMAscript
Hi, There are a few server side scripts in the sample modules as well as the integration tests (look for .esp files). Additionally [1] might also help. Regards Felix [1] http://cwiki.apache.org/SLING/scripting-variables.html vkrejcirik schrieb: Hi, can I ask you, if it exists any documentation or examples of server-side ECMAscript which is uses for rendering of content?
Re: documentation for server-side ECMAscript
Something that helped me a lot was to have a look at the unit tests particularly under /sling_src_home/scripting/javascript/src/test/java/org/apache/sling/scripting (it seems that the Sling svn is not alive anymore.. ) My 0.5 cents ;) On Mon, Feb 16, 2009 at 8:19 PM, Felix Meschberger fmesc...@gmail.comwrote: Hi, There are a few server side scripts in the sample modules as well as the integration tests (look for .esp files). Additionally [1] might also help. Regards Felix [1] http://cwiki.apache.org/SLING/scripting-variables.html vkrejcirik schrieb: Hi, can I ask you, if it exists any documentation or examples of server-side ECMAscript which is uses for rendering of content? -- Valentin Jacquemin
Re: Proposal: Extend o.a.s.j.c.i.r.XmlReader to support XSL transformations
On Fri, Feb 13, 2009 at 6:22 PM, Vidar Ramdal vi...@idium.no wrote: One easy way to get extensible format support, at least when speaking of XML formats, is to let XmlReader look for a reference to an XSL stylesheet in the XML file (?xml-stylesheet type=text/xsl href=stylesheet.xsl?). I've come really close to implementing this, but I have hit a wall when it comes to resolving the location of the XSL. In the example above, one would consider stylesheet.xsl to be a relative path to the XSL - relative from the XML file. However, I can't make XmlReader resolve the XSL file, as XmlReader only gets an InputStream of the XML, which contains no information on the XML's location. One option would be to change o.a.s.j.c.i.ContentReader#parse(InputStream, ContentCreator) to parse(URL, ContentCreator). This would mean making ContentReaders responsible for opening and closing the InputStream from the URL. It seems that every caller of ContentReader.parse knows the URL of the inputstream it is passing to the ContentReader, so that should not be too much work. Another option would be to only support absolute URLs when refering to the XSL file. This works in my current implementation, as long as the XSL is not located in a bundle. But in many cases the XSL *would* be supplied in a bundle, I believe bundle resources can be addressed by bundle://bundle-id/etc, but I don't know the bundle ID before the bundle is installed, right? Any suggestions? -- Vidar S. Ramdal vi...@idium.no - http://www.idium.no Akersgata 16, N-0158 Oslo, Norway
option overwrite:=true
hi, I have this in my pom.xml: plugin groupIdorg.apache.felix/groupId artifactIdmaven-bundle-plugin/artifactId extensionstrue/extensions configuration instructions Sling-Initial-Content initial-content;overwrite:=true /Sling-Initial-Content /instructions /configuration /plugin But if I reinstall bundle I have still old files in Sling. -- /**/ Best regards / S pozdravem Vladislav Krejčiřík http://www.vkrejcirik.info