xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Dupras <bri...@centera.com>
Subject why? xalan puts namespace ids in all my HTML tags.
Date Tue, 11 Jan 2000 19:59:33 GMT
Is there any reason why xalan would be putting xml namespace identifiers in
all my html tags when I transform XML to HTML?  Is there a way to stop it?

xalan 0.19.1
xerces 1.0.1
java 1.2.2 (Java2)


XML -----------------------------------------------------
<?xml version="1.0" ?>
<pp:site_view rid='urn:uuid:abdcedfghi899'
    xmlns:pp='http://ourserver/namespaces/practiceportal/1.0'
    xmlns:xlink='http://www.w3.org/XML/XLink/0.9'
    xmlns:html='http://www.w3.org/1999/xhtml'
    >
  <pp:metadata>
    <pp:editor>Brian Dupras</pp:editor>
    <pp:description>blah blah blah</pp:description>
  </pp:metadata>
  <pp:data>
    <!--Main Page-->
    <pp:page rid='urn:uuid:abdcedfghi234' />
  </pp:data>
</pp:site_view>

XSL -----------------------------------------------------
<?xml version="1.0"?>
<xsl:stylesheet 
	xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
	xmlns:pp='http://ourserver/namespaces/practiceportal/1.0'
	xmlns:xlink='http://www.w3.org/XML/XLink/0.9'
	xmlns:html='http://www.w3.org/1999/xhtml'
	>
	<xsl:output method="html" indent="yes"/>
    
	<xsl:template match="/">
		<xsl:apply-templates/>
	</xsl:template>
		<xsl:template match="pp:metadata">
			------------------ MetaData ------------------<br/>
			<xsl:apply-templates/>
			------------------ End MetaData --------------<br/>
		</xsl:template>

			<xsl:template match="pp:editor">
				Editor: <xsl:apply-templates/><br/>
			</xsl:template>

			<xsl:template match="pp:description">
				Description: <xsl:apply-templates/><br/>
			</xsl:template>
</xsl:stylesheet>

HTML fragment ------------------------------------------
  
------------------ MetaData ------------------<br
xmlns:pp="http://medwired.com/namespaces/practiceportal/1.0"
xmlns:xlink="http://www.w3.org/XML/XLink/0.9"
xmlns:html="http://www.w3.org/1999/xhtml">
    
				Editor: Brian Dupras<br
xmlns:pp="http://medwired.com/namespaces/practiceportal/1.0"
xmlns:xlink="http://www.w3.org/XML/XLink/0.9"
xmlns:html="http://www.w3.org/1999/xhtml">
    
				Description: blah blah blah<br
xmlns:pp="http://medwired.com/namespaces/practiceportal/1.0"
xmlns:xlink="http://www.w3.org/XML/XLink/0.9"
xmlns:html="http://www.w3.org/1999/xhtml">
  
------------------ End MetaData --------------<br
xmlns:pp="http://medwired.com/namespaces/practiceportal/1.0"
xmlns:xlink="http://www.w3.org/XML/XLink/0.9"
xmlns:html="http://www.w3.org/1999/xhtml">


HTML fragment (desired) --------------------------------

------------------ MetaData ------------------<br>
Editor: Brian Dupras<br>
Description: blah blah blah<br>
------------------ End MetaData --------------<br>


Brian Dupras
Centera Information Systems, Inc.
phone	303.939.0200 x294
fax	303.939.0111
web	http://www.centera.com
email	briand@centera.com

Mime
View raw message