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

RE: xsl templates, Removing spurious namespace declara

Subject: RE: xsl templates, Removing spurious namespace declarations in output elements
From: "Tim Wilkins" <Tim.Wilkins@xxxxxxxxxxxxxxxx>
Date: Wed, 9 Apr 2003 14:53:09 +0100
removing extra namespace
    <xsl:template name="recurseCopy">
     <xsl:choose>
       <xsl:when test="local-name()=''">

  the local name will only ever be '' for nodes that have no name:
  / and comments, do you apply this template to such nodes?

I initially created the template without this check for an empty name, but
hit error which turned out to be null name.  I found this was being hit when
I copied

<Attribute Mnemonic="Rname" Type="Text">
<TextValue>Value which has no name</TextValue>
</Attribute>

I've changed the precise details in case I infringe copyright, but the
string I've included as "Value which has no name" is the bit that was
causing this to happen-changing "<xsl:copy/>" to something like
"<junk0/><xsl:copy/><junk1/>" placed the extra elements within <TextValue>.
It could be there's a problem with my code, and I shouldn't hit this.

I don't apply the template to nodes other than Point and Attribute and their
children and I don't have any comments.

Thank you,

Tim



 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.