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

placing of namespace declarations in result tree

Subject: placing of namespace declarations in result tree
From: Linda van den Brink <lvdbrink@xxxxxxx>
Date: Tue, 24 Oct 2000 13:02:11 -0400 (EST)
placing of namespace declarations in result tree
Hi all, 

I transform <link> elements in my source to <link> elements that uses xlink
attributes, which are associated with the xlink namespace   . In the output,
the xlink namespace declaration is present on all parents of link elements.
This is not what I would expect (after reading XSLT section 7.1.1). Why are
the xlink namespace declarations not present on the link elements
themselves? Or why is there not just one xlink namespace declaration on the
document element? 

Source fragment:
<p>A <link type="glossary" ref="ciGL000001" show="embed">billing
request</link> is influenced by three main groups of settings.</p>

stylesheet fragment:
<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
  xmlns:xlink="http://www.w3.org/1999/xlink/namespace/">

[some template rules omitted]

<xsl:template match="link">
	<Link xlink:role="{@type}" xlink:href="{@ref}"><xsl:value-of
select="."/></Link>
</xsl:template>

result fragment:
<Paragraph xmlns:xlink="http://www.w3.org/1999/xlink/namespace/">A <Link
xlink:role="glossary" xlink:href="ciGL000001">billing request</Link> is
influenced by three main groups of settings.</Paragraph>




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.