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

RE: problem with URN please help (very urgent)!!

Subject: RE: problem with URN please help (very urgent)!!
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 16 Jun 2003 13:10:02 +0100
xpath default namespace
> > 
> > XSLT 2.0 allows this (by setting default-xpath-namespace) 
> but it's not 
> > possible in 1.0.
> 
> ?xpath-default-namespace?

Yes, sorry, we changed the name (several times)
> 
> 3.3 says
> There are a number of standard attributes that may appear on any XSLT
> element:
> ... xpath-default-namespace
> Saxon 7.5.1 reports
>  Attribute xsl:xpath-default-namespace is not allowed on this 
> element when applied to xsl:template.
> 
> How is it used please anyone?
> 

As the spec says, you call it xsl:xpath-default-namespace if it's used
on a literal result element, but xpath-default-namespace (sans prefix)
if it's used on an XSLT instruction.

Example:

<xsl:for-each select="a/b/c/d"
xpath-default-namespace="http://example.uri/">
  <xsl:value-of select="e"/>
</xsl:for-each>



 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.