473,396 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

xslt process disable otuput escaping dont work

hi,

i have a little problame. i got this xml file:
----
<?xml version="1.0" encoding="UTF-8" ?>
- <out>
- <design>
- <html>
- <![CDATA[
test vazzeg<b>aaaa</b> ]]>
</html>
- <html>
[......]
-----
and i got this xslt:
-----
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="UTF-8" />
<xsl:template match="/">
<html>
<xsl:for-each select="out/design/html">
<xsl:value-of select="." disable-output-escaping="yes" />
</xsl:for-each>
</html>
</xsl:template>
</xsl:stylesheet>
----

but it is wont work, the output will be:
?<html>test vazzeg&lt;b&gt;aaaa&lt;/b&gt;masiktest
vazzeg&lt;i&gt;aaaa&lt;/i&gt;</html>

And i dont understand why.
i use c#:
//make xslt

XPathNavigator nav = xmlOut.DocumentElement.CreateNavigator();

XslTransform xt = new XslTransform();

xt.Load(Sitegen.xsltDir + "out.xsl");

//make this site

XmlTextWriter writer = new XmlTextWriter(getFileName(isAdmin),
System.Text.UTF8Encoding.UTF8);

xt.Transform(xmlOut, null, writer);

thx for help

Mate
Nov 15 '05 #1
0 1334

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: H. Kaya | last post by:
Hallo, I have a problem converting a XML file to a other. I have no idea how I can do this. I try it for a long time but I can not find a solution. Has anyone a Idea? Below you can find my...
2
by: Andy Dingley | last post by:
I have some (somewhat ragged) HTML, and I wish to pre-process it with XSLT before putting it back onto the server. Throughout this HTML are many character entity references, such as "&ecaute;". ...
1
by: Lisa | last post by:
I need to apply the HTML formatting tags and the French accented characters in a XML document. The XML is generated from a database that has HTML tags and French accented characters in the records....
2
by: Michael TEpperis | last post by:
hello my xml result should contain the following two xml parts: 1) <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE AML SYSTEM "xxx.dtd" > 2) <Language LocaleId="&LocaleId.DEde;"...
13
by: Tjerk Wolterink | last post by:
Hello i've an xsl stylesheet that must support xhtml entities, my solution: ---- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE xsl:stylesheet > <xsl:stylesheet version="1.0"...
8
by: Kathleen Dollard | last post by:
Hi, Oleg's answer about attribute value templates led me to look back at a different problem, and wonder if someone else had solved it. I want to output an ASP.NET page. Thus I need to output...
2
by: kuttankuttan | last post by:
how can i convert the following XML __________________________________________________ <?xml version="1.0" encoding="UTF-8"?> <object type="company" action="C"> <property name="howmanynumbers"...
4
by: mark4asp | last post by:
I have an element, report which contains tags which have been transformed. E.g. <pis &lt;p&gt <myXml> <report>This text has html tags in it.&lt;p&gt which but <has been changed to &lt;&gt</report>...
3
by: joelkeepup | last post by:
Hi, im trying to create a text email message using xslt template , the transforms work great, but the newlines and whitespace in the xslt doc are removed. Is there a setting somewhere I have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.