Re: [xslt] handling of < in CDATA sections



On Tue, Feb 22, 2005 at 12:21:19PM +0100, Vincent Lefevre wrote:
> On 2005-02-22 05:48:50 -0500, Daniel Veillard wrote:
> >   An XML PI does not end with ?> but with >
> 
> The XML spec says the opposite.

  hum, it's the way around. depends what his stylesheet output
says.

> > so ....
> > 
> > <xsl:processing-instruction name="php">
> >   $var = 0;
> > ?</xsl:processing-instruction>
> > 
> > should do what you want !
> 
> No, http://www.w3.org/TR/xslt#section-Creating-Processing-Instructions
> says:
> 
> For example, this
> 
> <xsl:processing-instruction name="xml-stylesheet">href="book.css" type="text/css"</xsl:processing-instruction>
> 
> would create the processing instruction
> 
> <?xml-stylesheet href="book.css" type="text/css"?>

  again assuming an XML output. it creates a logical PI node, serialization
is a separated step which is not even mandatory.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://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]