PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
nadavvin
Forum Commoner
Posts: 68 Joined: Wed Sep 06, 2006 6:05 am
Post
by nadavvin » Wed Sep 06, 2006 6:49 am
PHP convert the <textarea></textarea> to <textarea /> which is not good since the following code is place inside the <textarea> content.
What should I do that it's convert to <textarea></textarea>?
I use in this PHP code to convert:
Code: Select all
<?php
$xml = new DOMDocument;
$xml->load('try.xml');
$xsl = new DOMDocument;
$xsl->load('try.xsl');
$proc = new XSLTProcessor;
$proc->importStyleSheet($xsl); // attach the xsl rules
echo $proc->transformToXML($xml);
?>
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Wed Sep 06, 2006 6:53 am
The php script is quite irrelevant here. try.xml and try.xsl are more interesting.
nadavvin
Forum Commoner
Posts: 68 Joined: Wed Sep 06, 2006 6:05 am
Post
by nadavvin » Wed Sep 06, 2006 7:54 am
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Wed Sep 06, 2006 8:09 am
There's only one textarea in Happy_Blog.xsl
<textarea name="Description" cols="35" rows="20"/>
What do you expect it to do? What do you want the template to do?
nadavvin
Forum Commoner
Posts: 68 Joined: Wed Sep 06, 2006 6:05 am
Post
by nadavvin » Wed Sep 06, 2006 8:26 am
volka wrote: There's only one textarea in Happy_Blog.xsl
<textarea name="Description" cols="35" rows="20"/>
What do you expect it to do? What do you want the template to do?
sorry I didn't update the xsl from my comuter, now there is closing tag </textarea> and it still don't work.
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Wed Sep 06, 2006 9:45 am
ok, now it's
Mozilla and IE both reduce it to
<textarea name="Description" cols="35" rows="20" /> since it has no contents.
As soon as you put something in there they will expand the element as expected.