Well -- there is still an issue -- if I get rid of the DTD and treat the 
document as well-formed,
but with the xmlns attribute still on the document element and in the xsl 
script...


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 22, 2003 3:30 PM
Subject: Re: stylesheet doesn't recognize elements


|
|
|
|
| It's also possible the DTD is specifying a default attribute that declares
| the default namespace.  This seems to be pretty common these days.  Check
| the DTD, or just declare a namespace binding for "http://www.agu.org/XML";
| in your stylesheet and use that prefix.  If things start matching, you'll
| know the DTD is the culprit.
|
| Dave
|
|
|
|
|                       "Steve Carton"
|                       <[EMAIL PROTECTED]         To:      <[EMAIL PROTECTED]>
|                       et>                      cc:      (bcc: David N 
Bertoni/Cambridge/IBM)
|                                                Subject: Re: stylesheet 
doesn't recognize elements
|                       09/22/2003 12:28
|                       PM
|                       Please respond
|                       to "Steve
|                       Carton"
|
|
|
|
| If I remove the xmlns from the document, I still get the same problem...
|
| <AGU-article DOI="10.1029/2002JD002489" DTD-version="3.42"
| paper-number="2002JD002489"
| paper-type="rga">
|  <header>
|
|
|
| ----- Original Message -----
| From: "Gordon Chiu" <[EMAIL PROTECTED]>
| To: "Steve Carton" <[EMAIL PROTECTED]>
| Cc: <[EMAIL PROTECTED]>
| Sent: Monday, September 22, 2003 3:08 PM
| Subject: Re: stylesheet doesn't recognize elements
|
|
| | On Mon, 22 Sep 2003, Steve Carton wrote:
| |
| | > Problem is, none of the elements in the document are recognized by the
| | > stylesheet. I get a result document that is essentially empty.
| | > Snippets follow.  Any idea what is causing this?
| |
| | The elements in your XML document are in the http://www.agu.org/XML
| | default namespace; you'll have to declare that namespace in your XSL file
| | and use it in your XPath expressions. Please see
| | http://xml.apache.org/xalan-j/faq.html#faq-N101DC for an example.
| |
| | Gordon
|
|

Reply via email to