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

Subject: RE: [xsl] problem with URN please help (very urgent)!!
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 16 Jun 2003 13:10:02 +0100
> > 
> > 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