Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 9th, 2007, 08:22 AM
Registered User
Join Date: Mar 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts


i tried that one, but in another xsl we do not have that as an attribute but we do have as below

<xyz m:id="_m32">
    <xsl:value-of select="a.zip/c.zip"/>

here 'm' is namespace.

this also gives the output with namespace value. do you have any idea how to get rid of these with newer versions of xerces & xalan

Old March 9th, 2007, 08:44 AM
mhkay's Avatar
Wrox Author
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

In the previous example you were outputting an attribute m:contextKey that caused the m namespace to be declared.

In this example you are outputting an attribute m:id that causes exactly the same effect, and the remedy is exactly the same.

I'm sorry I'm having so little success in explaining this to you.

Michael Kay
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Old March 9th, 2007, 11:12 AM
Registered User
Join Date: Mar 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts

Thank Michael,

I was considering these 2 in a different manner. But you are correct that both are attributes only. And thanks much for your help.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove namespace prefix from XmlBean ratzko BOOK: Professional Java Development with the Spring Framework 0 August 10th, 2008 01:23 PM
remove duplicate text in an output html element mrame XSLT 1 June 20th, 2008 01:41 AM
Help with PHP file reading XML file for output rydog65 Beginning PHP 0 March 26th, 2008 05:13 PM
File Manager Namespace error rob BOOK: ASP.NET Website Programming Problem-Design-Solution 0 January 29th, 2004 07:35 AM
Multiple file input single file output.... jdm_mboy Biztalk 1 July 2nd, 2003 03:35 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.