Am Die, 2002-04-02 um 10.42 schrieb Joshua Chamas: > > Marcus Zoller wrote: > > > > The first line in ASP::ParseXMLSubs removes any <?xml version ... ?> ... > > I removed the line and now anything works fine. Maybe this should be > > removed at all in the next release.. I can't see any reason to cut that > > instruction from the document...!? > > This is the offending Apache::ASP code: > > unless($self->{asp}{xslt}) { > $data =~ s|\s*\<\?xml\s+version\s*\=[^\>]+\?\>||is; > } > > and it was put there with the idea that XMLSubs could be used > to fully render an XML document. In sample XML hello world type > docs, this could work by just ripping the tag out. I am not > saying it should stay but that is why it is there...
So removing the tag is only required when working with XMLSubs in plain HTML documents.I think the term XMLSubs may cause some misunderstanding of the functionality behind... it has nothing in common with an XML document or any kind of XML processing. XMLSubs doesn't require an processing instruction, namespace declarations or anything else because it never gets handled or validated by an XML parser. In case of XSL processing the information is required because the result of the ASP processing is an XML document that must be transformed by the XSLT engine. Maybe this is a useful way to determine if tag tag should be removed or not (XSLT stylesheet perlvar is set or not) -> result is an XML document to transform by the XSLT engine or a plain HTML document. -- Marcus Zoller ....................................................................... The finest in secure communication technologies: http://www.idnt.net IDNT Integrated Digital Network Technologies Tel. +49 6403 9526 0 Perchstetten 14-16, 35428 Langgoens, Germany Fax. +49 6403 9526 503 ....................................................................... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]