Re: [xslt] bug in xsl:processing-instruction?
- From: Pierre François <pf arenberg cc>
- To: xslt gnome org
- Subject: Re: [xslt] bug in xsl:processing-instruction?
- Date: Tue, 15 Jul 2003 14:31:00 +0200
Guillaume SMET wrote:
> Hi,
>
> In fact, the output should even be :
> <?php
> echo $date;
> ?>
> It's far better not to use short open tags because you can configure php
> to ignore them (short_open_tag off in the php.ini), especially when you
> use XML.
>
> HTH
>
> G.
>
> Pierre François wrote:
>
>> Hi
>>
>> When I use the following xsl statement for producing html code with
>> xsltproc:
>>
>> <xsl:processing-instruction name="php">
>> echo $date;
>> </xsl:processing-instruction>
>>
>> I get the following output:
>>
>> <?
>> echo $date;
>> >
>>
>> I'm missing the '?' before the closing '>'. I fix it by putting
>>
>> //?</xsl:processing-instruction>
>>
>> instead of </xsl:processing-instruction>, but I wonder if this is not
>> a bug of xsltproc. Does anybody know why it behaves in such a way?
>>
>> Regards.
>>
>
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/
> xslt@gnome.org
> http://mail.gnome.org/mailman/listinfo/xslt
>
Of course, you are right. The output IS also what you've said, i.e.
'<?php'
I hit the send button too fast, it was too late when I saw this...
--
Pierre François (http://www.romanliturgy.org)
Roemer Visscherstraat 46
NL-1054 EZ Amsterdam (Netherlands)
+ 31 20 616 58 46
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]