[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSLT Processing w/ Embedded PHP Strips Trailing '?

Subject: RE: XSLT Processing w/ Embedded PHP Strips Trailing '?' of PI
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 4 Dec 2005 08:47:58 -0000
michael b. kay
If you use output method="html" this behaviour is correct. The syntax for
processing instructions in HTML (which are rarely used) uses "<?" and ">" as
the delimiters.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Michael B Allen [mailto:mba2000@xxxxxxxxxx] 
> Sent: 04 December 2005 04:59
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  XSLT Processing w/ Embedded PHP Strips 
> Trailing '?' of PI
> 
> If I run xsltproc from libxslt-1.1.11 on some xml w/ processing
> instructions in it, the closing '?' gets removed. Is this legit or am
> I missing something?
> 
> Mike
> 
> INPUT:
> 
> <tr><td>Username:</td>
> 
> <?php
>         if ($set != 0 && ($set & 0x01) == 0) {
>                 echo "<td bgcolor=\"#ff0000\">";
>         } else {
>                 echo "<td>";
>         }
>         echo "</td><input type=\"username\" name=\"username\" 
> value=\"" . $username . "\"/>";
> ?>
> 
> OUTPUT:
> 
> <tr>
> <td>Username:</td>
> 
> <?php if ($set != 0 && ($set & 0x01) == 0) {
>         echo "<td bgcolor=\"#ff0000\">";
>     } else {    
>         echo "<td>";
>     }
>     echo "</td><input type=\"username\" name=\"username\" 
> value=\"" . $username . "\"/>";

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.