Bug #10312: <xsl:strip elements ...> tag isn't working properly
| From: | joeasdf at hotmail dot com | Date: | Fri, 13 Apr 2001 00:01:15 +0000 |
| Subject: | Bug #10312: <xsl:strip elements ...> tag isn't working properly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51515@lists.php.net to get a copy of this message | ||
From: joeasdf@hotmail.com
Operating system: Windows 2000 Pro
PHP version: 4.0.4pl1
PHP Bug Type: Sablotron XSL
Bug description: <xsl:strip elements ...> tag isn't working properly
I think there may be a problem with Sablotron and <xsl:strip-space> tags.
I'm using Sablotron with PHP to generate HTML (and other text based outputs) from a couple
different stylesheets and XML data being pulled from my db.
When I run all my stylesheets on the command line with Instant Saxon (by Michael Kay), the output
looks just like I want it to. However, the output generated by PHP/Sablotron is messed up, because
there are too many newline characters in the output.
If I have
<text><page><para><mylist><mylistitem>listitem</mylistitem></mylist></para></page></text>
I get the correct output:
---- begin output ----
* listitem
---- end output ----
However, since this XML isn't very human readable, I reformat my XML input to this:
<text>
<page>
<para>
<myliist>
<mylistitem>listitem</mylistitem>
</mylist>
</para>
</page>
</text>
Instant Saxon treats these two XML inputs as the same thing and produces the same output, since
<xsl:strip-space elements="*" /> appears in the stylesheet. However, the
PHP/Sablotron translation gives me this:
---- begin output ----
* listitem
---- end output ----
I've also sent this note to the sab-bugs@gingerall people.
--
Edit Bug report at: http://bugs.php.net/?id=10312&edit=1