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

Throw an error from XSL

Subject: Throw an error from XSL
From: Nick Vincent <Nick@xxxxxxxxxxxx>
Date: Wed, 26 Sep 2001 12:09:47 +0100
throw xsl error
Hi,

I'm trying to work out how to throw an error from an XSL.  I've checked
Michael's book and the FAQ, and all of the information seems to be based
around trapping errors inside the XSL, rather than throwing them at the
user.

Background:

I'm writing an internal XML tag reference framework for our company, and am
using XSL to format and hyperlink up the HTML docs.

I have code like this:

	<tag name="cheese">
		...
	</tag>

	<tag name="biscuits">
		Biscuits go with <tagref name="cheese" />
	</tag>

Now I can easily look up the tag called 'cheese', and hyperlink to it when I
encounter a <tagref /> but I'd like to also just be able to stop and say "I
can't find the tag" if it doesn't exist (e.g. they tried to link to a tag
that isn't docced).  Can this be done so that people can't mess up our
internal docs?

Any suggestions much appreciated,

Thanks,

Nick

 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.