View Single Post
  #10 (permalink)  
Old November 22nd, 2007, 06:29 AM
joefawcett's Avatar
joefawcett joefawcett is offline
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

The good old default namespace strikes again.
<xsl:stylesheet    version="1.0" xmlns:x=""   xmlns=""    xmlns:xsl=""    xmlns:exslt=""  extension-element-prefixes="exslt">

  <xsl:output    indent="yes"    method="xml"    encoding="UTF-8"    omit-xml-declaration="yes"    doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"    doctype-system=""/>

  <xsl:template match="/">
        <title>                test            </title>
        <xsl:call-template name="select">
          <xsl:with-param name="options">
  <xsl:template name="select">
    <xsl:param name="options" />
    <xsl:for-each select="exslt:node-set($options)/*">
        <xsl:copy-of select="x:name"/>
        <xsl:copy-of select="x:value"/>
See first post in this forum category for more information on default namespaces if you need it.

I think you also want
rather than

Joe (Microsoft MVP - XML)
Reply With Quote