I haven't forgotten it.  It was on my list for today.

-scott




                                                                                       
                            
                    Donald Ball                                                        
                            
                    <balld@websli        To:     <[EMAIL PROTECTED]>, 
<[EMAIL PROTECTED]>           
                    ngerZ.com>           cc:     (bcc: Scott Boag/CAM/Lotus)           
                            
                                         Subject:     something funny with namespaces 
and xalan2.2dev (fwd)        
                    06/29/01                                                           
                            
                    12:07 AM                                                           
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    cocoon-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 <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: Scott Boag/CAM/Lotus <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]






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

Reply via email to