473,408 Members | 1,767 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,408 software developers and data experts.

Xmlt and xml closing tags

Hey XML-Fans,

I transform some XML-Files with XmlT to html.

I want to have a DOCTYPE

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Now I have some problems with the closing tags. For example wenn I say to my
template render:

---------------------------------------------------------

<img src="{$RootPath}images/marken/gabor.jpg" width="125" height="45"
alt="Logo Garbor" class="column"/>

----------------------------------

The closing tag "/" is not rendert. Also I have many problems to render the
German (Ä,ä Ö,ö) and others.

When I use the replacements for the chars example &umlA; the Stylesheet
craches.

Has someone a tip for me to get it work?

By the way; what's the different between XMLT and XSL? Can I do the same
transformation with XML?

Thanks for any replay.

Greetings from Germany

Heinz Willi Wiedow
Nov 11 '05 #1
2 2179


Heinz Willi Wiedow wrote:
Hey XML-Fans,

I transform some XML-Files with XmlT to html.

I want to have a DOCTYPE

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Now I have some problems with the closing tags. For example wenn I say to my
template render:

---------------------------------------------------------

<img src="{$RootPath}images/marken/gabor.jpg" width="125" height="45"
alt="Logo Garbor" class="column"/>

----------------------------------

The closing tag "/" is not rendert. Also I have many problems to render the
German (Ä,ä Ö,ö) and others.


Make sure you use
<xsl:output method="xml" encoding="ISO-8859-1" />
--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 11 '05 #2
thanks Martin, that's works, but it produced a another problem
I call in my C# code 6 templates to render my HTML-Page (meta, header footer
and so on)
When I set <xsl:output method="xml" encoding="ISO-8859-1" />
for the output each template renders this statement in the produced html
code.
I have so a line that you can see in the browser.
Can I avoid to render this line?

Greetings from Germany

Heinz Willi Wiedow

"Martin Honnen" <Ma***********@t-online.de> schrieb im Newsbeitrag
news:3F**************@t-online.de...


Heinz Willi Wiedow wrote:
Hey XML-Fans,

I transform some XML-Files with XmlT to html.

I want to have a DOCTYPE

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Now I have some problems with the closing tags. For example wenn I say to my template render:

---------------------------------------------------------

<img src="{$RootPath}images/marken/gabor.jpg" width="125" height="45"
alt="Logo Garbor" class="column"/>

----------------------------------

The closing tag "/" is not rendert. Also I have many problems to render the German (Ä,ä Ö,ö) and others.


Make sure you use
<xsl:output method="xml" encoding="ISO-8859-1" />
--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 11 '05 #3

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

Similar topics

3
by: Jean-Fran?ois Lacrampe | last post by:
Hello, I want to write a _very_ simple text parser that would replace a string like: "This is text with /italics/, *bold* and _underline_." and generate automatically something like this: ...
3
by: Ian Partridge | last post by:
Hello, I am planning to use XML in a log file for an application I am writing. The format will be something like: <task date="2003-10-09" time="12:03:45"> <action type="action1" timetaken="4"...
2
by: Heinz Willi Wiedow | last post by:
Hey everybody, I have some problems with XPath expressions. I try to find out, if a node that I have stored in a variable is a child node of the current node from a lop. I will show you my...
2
by: Nathan Sokalski | last post by:
I have a section in my ASP.NET code where I have an HTML unordered list. Visual Studio keeps removing the closing list item tags, except for the last list item. In other words, Visual Studio makes...
0
by: Allan Ebdrup | last post by:
I have a ascx webcontrol that I register with: %@ Register Src="../Controls/Default/Library/Basket/Basket.ascx" TagName="Basket" TagPrefix="uc1" %> and instantiate on the page with:...
4
by: Paul | last post by:
Hi all, I've built a custom control that won't contain any inner content. If I derive the control from Control, then the VS editor will always add the closing tag when I use the control. I can...
4
by: David Cartwright | last post by:
Hi, I have a VB.NET (VS2005, .NET 2.0) application producing an XML file which is then used by a third-party product. It turns out the latter doesn't like self-closing tags (i.e. it would rather...
4
by: basm101 | last post by:
Hello, I need to know how to create closing tag elements when using DOM to add in form elements to a page. Here is the code...the <div> I am adding to the page is called dropDownList (for...
1
by: Nathan Sokalski | last post by:
I am using the System.Web.UI.HtmlTextWriter, and would like to create tags that are self-closing (such as <tagname />). The RenderBeginTag method does not offer the option of making a self-closing...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.