You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by "McNerney, Lindsey" <li...@excelergy.com> on 2003/01/21 23:33:52 UTC

transforming XML with an internally defined DTD

If you have an XML instance with an internally defined DTD, how does this
need to be referenced in the style sheet?  I've tried applying a stylesheet
to such an XML instance and Xalan throws an exception stating it was
expecting CDATA.

Thank you.




Re: transforming XML with an internally defined DTD

Posted by David N Bertoni/Cambridge/IBM <da...@us.ibm.com>.



Xalan nevers sees any part of DTD -- that's processed by the Xerces parser
before the transformation begins.  So, you probably have an error in your
DTD or you've enabled validation, and your document is not valid according
to the DTD.  Look at the line and column number of error message to see
what the parser thinks the problem is.

If you can reproduce this with a small input document and stylesheet, you
can post them to the list and someone will likely take a look at it.

Dave



                                                                                                                         
                      "McNerney, Lindsey"                                                                                
                      <lindsey.mcnerney@exc         To:      "'xalan-c-users@xml.apache.org'"                            
                      elergy.com>                   <xa...@xml.apache.org>                                       
                                                    cc:      (bcc: David N Bertoni/Cambridge/IBM)                        
                      01/21/2003 02:33 PM           Subject: transforming XML with an internally defined DTD             
                                                                                                                         



If you have an XML instance with an internally defined DTD, how does this
need to be referenced in the style sheet?  I've tried applying a stylesheet
to such an XML instance and Xalan throws an exception stating it was
expecting CDATA.

Thank you.