perhaps because the output of your transform is not a valid xml
because the root must be single node.
here you have 3 nodes per user at the root:
try putting
<xsl:template match="/">
<root>
<xsl:apply-templates select="//users"/>
</root>
</xsl:template>
as first template of your xsl document
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 09, 2003 3:04 PM
Subject: problems with authentification (Sunrise-user.xsl)
I have a problem with a XSL transformer, but why?
Before the transformer (log):
=============================
[setup] ---------------------------- [Wed Jul 09 14:55:44 CEST 2003]
----------------------------
[startDocument]
[characters] simple
[startElement] uri=,local=users,raw=users
[startElement] uri=,local=user,raw=user
[startElement] uri=,local=name,raw=name
[characters] TFRGHM00
[endElement] uri=,local=name,qname=name
[startElement] uri=,local=password,raw=password
[characters] testa
[endElement] uri=,local=password,qname=password
[startElement] uri=,local=role,raw=role
[characters] admin
[endElement] uri=,local=role,qname=role
[startElement] uri=,local=title,raw=title
[characters] Monsieur
[endElement] uri=,local=title,qname=title
[startElement] uri=,local=firstname,raw=firstname
[characters] Maxime
[endElement] uri=,local=firstname,qname=firstname
[startElement] uri=,local=lastname,raw=lastname
[characters] Gheysen
[endElement] uri=,local=lastname,qname=lastname
[endElement] uri=,local=user,qname=user
[endElement] uri=,local=users,qname=users
[endDocument]
the xsl transformer (sunrise-user.xsl)
=====================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="users">
<xsl:apply-templates select="user"/>
</xsl:template>
<xsl:template match="user">
<ID><xsl:value-of select="name"/></ID>
<role><xsl:value-of select="role"/></role>
<data>
<name><xsl:value-of select="name"/></name>
<role><xsl:value-of select="role"/></role>
<ID><xsl:value-of select="name"/></ID>
<user><xsl:value-of select="name"/></user>
<title><xsl:value-of select="title"/></title>
<firstname><xsl:value-of
select="firstname"/></firstname>
<lastname><xsl:value-of select="lastname"/></lastname>
<company><xsl:value-of select="company"/></company>
<street><xsl:value-of select="street"/></street>
<zipcode><xsl:value-of select="zipcode"/></zipcode>
<city><xsl:value-of select="city"/></city>
<country><xsl:value-of select="country"/></country>
<phone><xsl:value-of select="phone"/></phone>
<fax><xsl:value-of select="fax"/></fax>
<email><xsl:value-of select="email"/></email>
<bankid><xsl:value-of select="bankid"/></bankid>
<bankname><xsl:value-of select="bankname"/></bankname>
<accountid><xsl:value-of
select="accountid"/></accountid>
</data>
</xsl:template>
</xsl:stylesheet>
after the transformer (log):
=============================
[setup] ---------------------------- [Wed Jul 09 14:55:44 CEST 2003]
----------------------------
[startDocument]
[characters] simple
the error
=========
java.lang.NullPointerException
at
org.apache.cocoon.webapps.authentication.components.Authenticator.authen
ticate(Authenticator.java:288)
at
org.apache.cocoon.webapps.authentication.components.DefaultAuthenticatio
nManager.login(DefaultAuthenticationManager.java:218)
at
org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAct
ion.java:118)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(Ac
tTypeNode.java:133)
...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]