Re: [xslt] <xsl:processing-instruction>



On Sun, Jul 08, 2001 at 05:30:42PM +0200, Bernhard Zwischenbrugger wrote:
> xsltproc Result:
> =============
> 
>  xsltproc test.xsl test.xml
> -----------------------
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" 
> "http://www.w3.org/TR/REC-html40/loose.dtd">
> <?php echo "It's a test";>
> 
> Result with sablotron:
> ==================
> 
> sabcmd test.xsl test.xml
> <?php echo "It's a test";?>
> 
> The Bug:
> ========
> 
> The Question Mark is missing. 
> xsltproc prints ">" instead of "?>"-

  Sablotron is wrong the output method is HTML:

  http://www.w3.org/TR/xslt#section-HTML-Output-Method

  "The html output method should terminate processing instructions
   with > rather than ?>"

 Not a bug, a feature, really :-)

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
Sep 17-18 2001 Brussels Red Hat TechWorld http://www.redhat-techworld.com




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