RE: [xsl] How to handle xsi prefix in XSLT

Subject: RE: [xsl] How to handle xsi prefix in XSLT
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 28 Nov 2001 22:35:48 -0000
> Below is simplified version of my XSLT file and full version of my XML
> source file to which I am trying to apply the mentioned XSLT. The
> problem I am having is in the ?<xsl:template match =
> "Command[@xsi:type]">? line and more specifically with xsi:type
> attribute. I am using xsi:type because that how it appears in
> XML file,
> but when I try to apply XSLT to XML I am getting :
> "org.xml.sax.SAXParseException: undefined prefix" error.
> I am using TIBCO visual tool for XML and XSLT. Can anyone
> point anything
> wrong with what I am doing, please?

If you use a namespace prefix in the stylesheet, even if only in an
expression or pattern, then you must declare it in the stylesheet with an
xmlns:xsi="..." declaration.

Mike Kay

 XSL-List info and archive:

Current Thread