Hi,
The xsl in my view is functioning, but it doesn't see the model at all. What simple thing did I overlook? :) I've got a processor/pipeline which outputs something like: <?xml version="1.0" encoding="utf-8"?> <security> <userDetails> <usernameType>string</usernameType> <username>anonymousUser</username> </userDetails> <authentication> <authorities> <authority>ROLE_ANONYMOUS</authority> </authorities> <credentials/> <details>org.acegisecurity.ui.WebAuthenticationDetails@7798: RemoteIpAddress: 206.124.149.146; SessionId: null</details> <principal>anonymousUser</principal> <isAuthenticated>true</isAuthenticated> </authentication> <externalContext>true</externalContext> <session> <authException/> <lastUsername/> </session> </security> The pipeline looks like this (it will output the above xml to a browser when configured as a view only): <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <p:param name="data" type="output"/> <p:processor name="oxf:url-generator" xmlns:p="http://www.orbeon.com/oxf/pipeline"> <p:input name="config"> <config> <url>oxf:login.jsp</url> <content-type>text/html</content-type> <tidy-options> <show-warnings>true</show-warnings> <quiet>false</quiet> </tidy-options> </config> </p:input> <p:output name="data" ref="data"/> </p:processor> </p:config> ... and an xsl file more or less like: <html xsl:version="2.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:ev="http://www.w3.org/2001/xml-events"> <head/> <body> <!-- SNIP --> <xsl:value-of select="/security/authentication/authorities/authority" /> <xsl:value-of select="/security/userDetails/username" /> </body> </html> Switching the version to 1.0 causes the xsl to not be recognized (as expected?). The page-flow includes: <page id="login" path-info="/nexus/login" view="login.xsl" model="login.xpl"/> tia! -- -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Doh! I switched *xpl files on myself, the correct one looks like: <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <p:param name="data" type="output"/> <p:processor name="oxf:java" xmlns:p="http://www.orbeon.com/oxf/pipeline"> <p:input name="config"> <config sourcepath="." class="Acegi"/> </p:input> <p:output name="data" debug="message" ref="data"/> </p:processor> </p:config> note to self: sleep first, *then* post :) -- -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |