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

Why doesn't exclude-result-prefixes rid me of xmlns=""

Subject: Why doesn't exclude-result-prefixes rid me of xmlns=""?
From: Michael Terry <formido@xxxxxxx>
Date: Tue, 13 Apr 2004 01:04:40 -0700
exclude result prefixes xmlns
Hi,

After searching Google, I figured out how to exclude-result-prefixes, but I'm still getting an unwanted 'xmlns=""' in one of my outputted divs. Can someone tell me why?

Following on, I've included excerpts from the source, the script, and the result. At the bottom, I pasted in the browser display from the result of running the processor-version.xsl on itself, plus links to the relevant full texts, should they be necessary.

--------------------------------------
dictionary.xmloutline (source excerpt)
--------------------------------------
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE oo:outline PUBLIC "-//omnigroup.com//DTD OUTLINE 2.0//EN" "xmloutline-v2.dtd">
<outline xmlns:oo="http://www.omnigroup.com/namespace/OmniOutliner/v2" version="1.0">
<oo:columns>


... snip ...

<oo:root background-color='#ffffff' alternate-color='#d6ffed'>
<oo:item expanded="yes">
<oo:values>
<oo:rich-text><oo:p alignment="left"><oo:font face="Monaco" size="10">OmniWeb:</oo:font></oo:p></oo:rich-text>
</oo:values>
<oo:children>
<oo:item expanded="yes">
<oo:values>
<oo:rich-text><oo:p alignment="left"><oo:font face="Monaco" size="10">classes:</oo:font></oo:p></oo:rich-text>
</oo:values>
<oo:children>
<oo:item expanded="yes">
<oo:values>
<oo:rich-text><oo:p alignment="left"><oo:font face="Monaco" size="10">application:</oo:font></oo:p></oo:rich-text>
</oo:values>
<oo:children>
<oo:item expanded="yes">
<oo:values>
<oo:rich-text><oo:p alignment="left"><oo:font face="Monaco" size="10">commands:</oo:font></oo:p></oo:rich-text>
</oo:values>
<oo:children>
<oo:item expanded="yes">
<oo:values>
<oo:rich-text><oo:p><oo:font face="Monaco" size="10">activate:</oo:font></oo:p></oo:rich-text>
</oo:values>
<oo:children>


--------------------------------------
format_dictionary.xsl (full text)
--------------------------------------
<?xml version="1.0"?>

<xsl:stylesheet
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:oo="http://www.omnigroup.com/namespace/OmniOutliner/v2"
	exclude-result-prefixes="oo">

<xsl:output
method="xml"
indent="yes"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"/>

<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>OmniWeb AppleScript Documentation</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"/>
</head>
<body>
<xsl:apply-templates select="outline/oo:root"/>
</body>
</html>
</xsl:template>


<xsl:template match="oo:root">
	<xsl:apply-templates select="oo:item"/>
</xsl:template>

<xsl:template match="oo:item">
	<div>
	<xsl:value-of select="./oo:values/oo:rich-text/oo:p"/>
	<xsl:apply-templates select="oo:children/oo:item"/>
	</div>	
</xsl:template>

</xsl:stylesheet>

--------------------------------------
dictionary.html (result excerpt)
--------------------------------------
<?xml versioasdfsan="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>OmniWeb AppleScript Documentation</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
</head>
<body>
<div xmlns="">OmniWeb:<div>classes:<div>application:<div>commands: <div>activate:<div>activate</div>
</div>
<div>count:<div>count</div>
<div>count it each browser</div>
<div>count each browser</div>
</div>


--------------------------------------
processor version info
--------------------------------------
Vendor: Apache Software Foundation
Vendor URL: http://xml.apache.org/xalan-c

--------------------------------------
links to full texts
--------------------------------------
<http://homepage.mac.com/formido/dictionary.xmloutline>
<http://homepage.mac.com/formido/format_dictionary.xsl>
<http://homepage.mac.com/formido/dictionary.html>
<http://homepage.mac.com/formido/processor_version_info.html>

Mike

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.