html File without xml-Tag

T

Tobias

Hy,

I have the following Problem:
XML-File:
<?xml version="1.0" encoding="UTF-8"?>
<sf xmlns="blabla">
....
XSL-File:
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:sf="blabla"
xmlns="blabla">
....

the resulting html-file is:
<?xml version="1.0" encoding="UTF-8"?><html xmlns="blabla"
xmlns:sf="blabla">
....

what do i have to do to supress the xml-tag. I want the html file to
begin with <html>

Greetings

Tobias
 
M

Martin Honnen

Tobias wrote:

XML-File:
<?xml version="1.0" encoding="UTF-8"?>
<sf xmlns="blabla">
...
XSL-File:
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:sf="blabla"
xmlns="blabla">
...

the resulting html-file is:
<?xml version="1.0" encoding="UTF-8"?><html xmlns="blabla"
xmlns:sf="blabla">
...

what do i have to do to supress the xml-tag. I want the html file to
begin with <html>


Then make sure you use
<xsl:eek:utput method="html" />
and on the xsl:stylesheet element add e.g.
<xsl:stylesheet
exclude-result-prefixes="sf"
and throw out that
xmlns="blabla"
in the stylesheet.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top