[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

namespace issue

Subject: namespace issue
From: Jonathan Kart <jkart@xxxxxxxxxxxx>
Date: Sat, 17 May 2003 00:01:56 -0700
xsltsl.org date time
Hi all,

I have a namespace problem I can't figure out.

my xsl stylesheet declaration looks like this:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dt="http://xsltsl.org/date-time" >


then further on in the stylesheet i have various templates which use div tags. for example:

<xsl:template match = "E-Mail_Addresses" >
	<div class="object" id="object28">
		<xsl:apply-templates select="Type" />
		<xsl:apply-templates select="Address" />
	</div>
</xsl:template>

the xml (for the E-Mail_Addresses element) looks like:

<E-Mail_Addresses instance_uid = "34" >
	<Address >bob@xxxxxxxxxxxxx</Address>
	<Type >
		<option>-Select a Type-</option>
		<option value="4" >Home</option>
		<option value="3" selected="1">Work</option>
	</Type>
</E-Mail_Addresses>

the resulting xhtml looks like:

<div xmlns:dt="http://xsltsl.org/date-time" class="object" id="object28">
<span class="attribute" id="attribute74">Work</span>
<span class="attribute" id="attribute73">bob@xxxxxxxxxxxxx</span>
</div>


I'm not worried about the inner spans. They're handled by other templates which seem to be doing their jobs. What I don't know is why the xmlns attribute is being inserted into the div element.

Any help would be most appreciated.
Thanks,
-jonathan kart

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.