Wrox Programmer Forums
BOOK: Beginning XML, 4th Ed ISBN: 978-0-470-11487-2
This is the forum to discuss the Wrox book Beginning XML, 4th Edition by David Hunter, Jeff Rafter, Joe Fawcett, Eric van der Vlist, Danny Ayers, Jon Duckett, Andrew Watt, Linda McKinnon; ISBN: 9780470114872
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning XML, 4th Ed ISBN: 978-0-470-11487-2 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 October 21st, 2008, 04:21 AM
Registered User
Join Date: Oct 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Harshal123
Default Namespace problem

always we use xs:double but where is the namespace...?
Ho can i apply to the same...
My code is not working.

Code is written using VS-2008 IDE.

<xsl:stylesheet version="2.0"

  <xsl:template match="/">
"[u]Here i call the Template Print</u>"
</ </xsl:template>

  <xsl:template name="Print">
        <xsl:value-of select="xs:double(@VALUE)"/>

What is the namespace i need to include..?
I want to display value "105E+20" value as float or by user defined format like 0.000105 or something same....

Old October 21st, 2008, 06:35 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

You can write XSLT 2.0 stylesheets in Visual Studio but there is no built-in way to test them from there as the .NET base library only supports version 1.0.
You could try installing Saxon.NET and using a custom tool to run the stylesheet or use a better editor.


Joe (Microsoft MVP - XML)

Similar Threads
Thread Thread Starter Forum Replies Last Post
namespace problem gantait XSLT 5 February 19th, 2007 12:51 AM
namespace problem muki XSLT 1 November 13th, 2005 12:25 PM
Namespace Problem JRMotz BOOK: ASP.NET Website Programming Problem-Design-Solution 1 November 12th, 2005 03:18 PM
namespace problem marclena XSLT 1 February 12th, 2004 03:48 PM
Problem with Namespace allenracho BOOK: ASP.NET Website Programming Problem-Design-Solution 2 October 22nd, 2003 11:31 AM

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