[xslt] Re: Transforming RSS (")



On Mon, 12 Dec 2005 10:28:57 -0700, Andrew Shafer wrote:

> 
> I'm using libxslt and libxml2 but I'm kinda new to xslt so this might
> seem like a dumb question.
> 
> I am playing around with building an RSS reader.
> 
> I get the xml 
 
from where?

>and use xsl templates to create html.
> 
> A problem is people often put &quot; into the <description> tag, so at
> the end of the day the result is &amp;quot;.
> 
> Is there a common/best way to fix this?

Yes, your xml parser needs to deal with that :-)
Can you provide us with a _real_ sample? 
My local testing reveals:
----------- file test.xml ---------------------
<?xml version="1.0" ?>
<description>
&quot;Hi there&quot;
</description>
-----------------------------------------------

$ xmllint test.xml

<?xml version="1.0"?>
<description>
"Hi there" 
</description>


So, where's the problem?

 Cheers, Ralf Mattes

 
> Regards,
> 
> Andrew Shafer




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]