Re: [xslt] bug in xsl:processing-instruction?



On Tue, Jul 15, 2003 at 03:10:06PM +0200, Le grande pinguin wrote:
> On Tue, Jul 15, 2003 at 02:52:58PM +0200, Pierre Fran?ois wrote:
> > Morus Walter wrote:
> > 
> > > 
> > > The missing ? at the end of the PI is due to the xslt spec:
> > > http://www.w3.org/TR/xslt#section-HTML-Output-Method:
> > > ...
> > > The html output method should terminate processing instructions 
> > > with > rather than ?>
> > > ...
> > 
> > I will improve the accuracy of my question:
> 
> But isn't it answered allready? 
> Your stylesheet sets the output method to 'html'.
> The correct PI for html is (as Walter said) <?blub foo>.
> You expect _XML_ PIs which you will undoubtly get if you
> set your output method to 'xml'.

  Right, the output from xsltproc is simply what the XSLT-1.0 spec
asks to generate, deal with it. Simply end your PI string with '?'
if you're generating HTML !

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]