Subject: Re: [xsl] getting XSL to ignore a line From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx> Date: Fri, 20 Jul 2001 11:19:05 -0400 |
[Samina Islam] > > At the top of every XML document I pass into the > stylesheet there is: > > <?xml version="1.0" encoding="iso-8859-1" ?> > <!DOCTYPE moreovernews (View Source for full > doctype...)> > This is impossible if taken literally, because "(View Source for full doctype...)" is illegal in a DOCTYPE declaration. You would be trying to process a non-well-formed document, hence the failure. But it IS what you see when you view an xml page with Internet Explorer. You would only get it if you copy the file from the IE display. If that's what you are doing, you would need to preprocess the file to get rid of the DOCTYPE declaration. If you only do a few by hand, fix it with a text editor. Otherwise write a script in some scripting language (e.g., awk, python, perl). If that is not the case, then your description is not quite accurate and you will get better help if you describe carefully how you are getting your xml file and what it looks like, > How can I get the XSL stylesheet to "skip over" the > line that says: <!DOCTYPE moreovernews (View Source > for full doctype...)> ? I do not need this in my > output. > > The error I am getting says: > > XSL Error: Could not parse file:C:/page4.xml document! > XSLT: connect <code=10060> > Xalan: was not successful. > Cheers, Tom P XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] getting XSL to ignore a l, Jeni Tennison | Thread | [xsl] DOCTYPE/DTD, Samina Islam |
Re: [xsl] getting XSL to ignore a l, David Carlisle | Date | Re: [xsl] Nestled Template Surreali, Jeni Tennison |
Month |