473,765 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.dt d">

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 2199


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.dt d">

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.dt d">

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
3949
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: "This is text with <i>italics</i>, <b>bold</b> and <span
3
1613
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" /> <action type="action2" timetaken="4" /> <action type="action3" timetaken="4" /> </task duration="12">
2
3339
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 xml and xmlt file where I have tryed this: ---My xml-file-----------
2
1940
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 my code look like the following: <ul> <li>adasf <li>asdfsa <li>asdfd <li>adfsdf</li>
0
1192
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: <uc1:Basket ID="Basket1" runat="server" /> This works without problems, Now I've added the attribute:
4
1298
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 derive from UserControl and it doesn't do this, but I'm not sure whether is the best way to do this. What is the correct way to make a control that is self-closing (i.e. doesn't have a closing tag)?
4
11167
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 see <CardNo></CardNothan <CardNo />). Is there a simple way to tell the XMLDocument to use the "traditional" way of showing an empty tag instead of always saving self-closing tags?
4
3791
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 legacy reasons...it isnt really a drop down list!). I need to put in closing td tags... I tried this: var tdClose = document.createElement(/td); and this:
1
5143
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 tag (I think it should have an optional boolean parameter to specify whether it is self-closing, but it doesn't). I know how to make self-closing tags using the Write methods, but this requires calling a write method for every attribute and style,...
0
10163
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9835
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8832
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7379
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5276
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.