I just sent Peter back a corrected version of his code. Basically, I've
changed this:

- For SAX generation, the namespace URI must be null sein, not "null" or "".
- localName must be the same value as qName when no namespaces are used
like here

wrong:
handler.startElement("", "", "root", atts);
or: handler.startElement("null", "null", "root", atts);

right:
handler.startElement(null, "root", "root", atts);

- In the stylesheet I've replaced "/" in the template by "root". I never
use "/" on a template because I've run into problem myself then.

After these changes, it worked.

On 12.12.2005 09:19:10 Peter.Neu wrote:
> Hello,
> 
> I reworked the xml creation in the servlet but still the result is blank.
> Please have a look at the attached servlet and the stylesheet. 
> For the sake of visibility I refrain from posting it inside this mail :o)
> 
> cheers,
> 
> Pete
> 
> 
> > --- Ursprüngliche Nachricht ---
> > Von: "J.Pietschmann" <[EMAIL PROTECTED]>
> > An: [email protected]
> > Betreff: Re: How to pass input of xml tranfs. to xslt transf. ?
> > Datum: Sun, 11 Dec 2005 22:49:15 +0100
> > 
> > [EMAIL PROTECTED] wrote:
> > > handler.startElement("", "", "root", atts);
> >                         ^^^^^^
> > This doesn't look good. Try null here. Did you try to serialize
> > the generated XML?
> > 
> > J.Pietschmann
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -- 
> 10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
> +++ GMX - die erste Adresse für Mail, Message, More +++



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to