cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott_B...@lotus.com
Subject Re: something funny with namespaces and xalan2.2dev (fwd)
Date Fri, 29 Jun 2001 14:51:11 GMT

Don, I certainly can't replicate this on the command line, with any of the
different flavors.  Some questions:

1) When did you get your last CVS refresh?  Did you try it with the latest?
(A nasty bug was discovered with TransformerHandler the other day that was
effecting the Cocoon environment).

2) Is this through a SAX pipe?  i.e. SAX events?

3) If yes to (2), are you certain the namespace parameter is passed
correctly?  Who is the generator of the SAX events?  (Another Xalan
process?)

-scott




                                                                                         
                         
                    Donald Ball                                                          
                         
                    <balld@websli        To:     <cocoon-dev@xml.apache.org>, <xalan-dev@xml.apache.org>
          
                    ngerZ.com>           cc:     (bcc: Scott Boag/CAM/Lotus)          
                            
                                         Subject:     something funny with namespaces and
xalan2.2dev (fwd)        
                    06/29/2001                                                           
                         
                    12:07 AM                                                             
                         
                    Please                                                               
                         
                    respond to                                                           
                         
                    xalan-dev                                                            
                         
                                                                                         
                         
                                                                                         
                         




i haven't received any word back about this, so i thought i'd repost it,
including xalan-dev this time. in short, xalan is losing the default
namespace for the form element and all elements beneath it in my example
below - but only when it's called via SAX TRAX (heh) from cocoon2. when i
invoke xalan from the command line, it works properly.

anyone have a suggestion?

- donald

---------- Forwarded message ----------
Date: Wed, 27 Jun 2001 15:52:09 -0400 (EDT)
From: Donald Ball <balld@webslingerZ.com>
To: cocoon-dev@xml.apache.org
Cc: Scott Boag/CAM/Lotus <scott_boag@lotus.com>
Subject: something funny with namespaces and xalan2.2dev (fwd)

i think i have some good data on this now. here's the xml right before
it's sent to xalan:

<?xml version="1.0" encoding="UTF-8"?>
<page xmlns="http://intranet.webslingerZ.com/xml/site/v1">

<body>

<form method="post" action="/intranet/tables/event_table/edit"><input
name="id" label="Id" type="hidden"/><input name="event_type_id"
label="Event Type" type="select"><option
value="1">Appointment</option><option value="2">Vacation</option><option
value="3">Trouble Ticket</option><option value="4">Project
Milestone</option></input><input name="description" label="Description"
type="text"/><input name="employee_id" label="Employee"
type="select"><option value="1">balld</option></input><input
name="client_id" label="Client" type="select"><option
value="1">webslingerZ</option></input><input name="start_date"
label="Start Date" type="text"/><input name="end_date" label="End Date"
type="text"/><input type="submit" value="OK"/></form>

</body>

</page>

i wrote a little debugging stylesheet so i could see what xalan was doing:

<xsl:template match="/|*">
  <element name="{name(.)}" namespace="{namespace-uri(.)}" local
="{local-name(.)}">
    <xsl:apply-templates/>
  </element>
</xsl:template>

and here's the output from xalan from cocoon2:

<?xml version="1.0" encoding="UTF-8"?>
<element local="" namespace="" name=""><element local="page"
namespace="http://intranet.webslingerZ.com/xml/site/v1" name="page">

<element local="body"
namespace="http://intranet.webslingerZ.com/xml/site/v1" name="body">

<element local="form" namespace="" name="form"><element local="input"
namespace="" name="input"/><element local="input" namespace=""
name="input"><element local="option" namespace=""
name="option">Appointment</element><element local="option" namespace=""
name="option">Vacation</element><element local="option" namespace=""
name="option">Trouble Ticket</element><element local="option" namespace=""
name="option">Project Milestone</element></element><element local="input"
namespace="" name="input"/><element local="input" namespace=""
name="input"><element local="option" namespace=""
name="option">balld</element></element><element local="input" namespace=""
name="input"><element local="option" namespace=""
name="option">webslingerZ</element></element><element local="input"
namespace="" name="input"/><element local="input" namespace=""
name="input"/><element local="input" namespace="" name="input"/></element>

</element>

</element></element>

as you can see, xalan is losing the default namespace uri once it gets to
the form element, and it seems that it ought not to be doing so. can i get
a witness?

- donald







---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message