LoadSkin loop error
===

This is my LoadSkin view helper. I use this class to call the CSS files within an XML. See below:

	public function loadSkin($skin)
	{
		$skinData = new Zend_Config_Xml('./skins/' . $skin . '/skin.xml');
		$stylesheets = $skinData->stylesheets->stylesheet->toArray();
		
		if(is_array($stylesheets))
		{
			foreach($stylesheets as $stylesheet)
			{
				echo $this->view->headLink()->appendStylesheet('/skins/' . $skin . 
						'/css/' . $stylesheet);
			}		
		}
	}

But i have one problem, i have 3 CSS files: 

 - default.css
 - text.css
 - form.css

But the loop is wrong. First he takes the default.css. After he takes default.css and text.css. And finally he takes default.css, text.css and form.css. But i need only one loop working correctly.

Look below what's happen:

http://i.imgur.com/KXVSe.png

Someone can help with this?
