[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How to handle xsi prefix in XSLT

Subject: RE: How to handle xsi prefix in XSLT
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 28 Nov 2001 22:35:48 -0000
xslt declare prefix xsi
> 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.