You probably intended this for the Xalan (XSLT processor) user list rather
than the Xerces (XML parser) list.

Short answer: This is an XSLT FAQ. To match a namespaced element -- whether
the source document uses the default namespace or not -- you must use a
properly-declared namespace prefix in your XPath. There is a proposal to
add the default shorthand to XPath 2.0, but until that comes along you're
stuck.  Rewrite your template as

<xsl:template match="foo:Message" xmlns:foo="
http://www.dot.com/xmlstds/request";>
             <xsl:copy-of select="."/>
</xsl:template>

(Of course you can declare the prefix at a higher level, eg on the
stylesheet element, if you prefer; since you'll usually want to use it in
multiple templates that's generally the preferred solution.)

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to