This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How to handle xsi prefix in XSLT


> 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:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]