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 19th, 2008, 12:44 PM
Authorized User
 
Join Date: May 2007
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default default-xpath-namespace

I was trying to use default-xpath-namespace with XSLT 2.0 (Saxon 8) and am unable to do so.

Input:

<cv:record xmlns:cv="http://mynamespace">...</cv:record>

Stylesheet

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" default-xpath-namespace="http://mynamespace">

Using Saxon 8 within Oxygen returns an error msg that default-xpath-namespace is not allowed on <xsl:stylesheet> element.

Is this attribute supported?
 
Old March 19th, 2008, 12:49 PM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

The attribute is named 'xpath-default-namespace', see http://www.w3.org/TR/xslt20/#stylesheet-element.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Default Namespace EcceBozo XSLT 2 June 6th, 2007 04:05 PM
XPATH: Retrieve Value without namespace prefixes ramesh.kumarm XSLT 4 September 14th, 2006 03:50 AM
Access Namespace Node using XPath pvasudevan XSLT 1 January 2nd, 2006 06:20 AM
Default Namespace (where is it?) bekim BOOK: ASP.NET Website Programming Problem-Design-Solution 4 June 12th, 2004 03:50 AM
XPath matching with a default namespace rich_unger XSLT 5 December 4th, 2003 01:22 AM





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