xslt catch all,xsl template name to catch,catch all tags xslt, xml%%%xslt catch all - RE: Catch ALL

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

RE: Catch ALL | Failed template rule

Subject: RE: Catch ALL | Failed template rule
From: "Nicola Harlow" <Nicola.Harlow@xxxxxxxxxxxx>
Date: Thu, 24 Mar 2005 13:42:16 -0000
xslt catch all
Hi Karl,

Sorry if this is way off target, but I have just found a solution for a
similar problem that may help you.

This is in XSL:FO, and may not be of any use to you, but you may be able
to adapt it.

Basically I have a tag that searches for a glossary entry. When it finds
it, it creates a link to the glossary entry. If there is no entry, it
creates a broken link and spews forth some red text so I can find it

    <xsl:template match="glossarytt">
        <xsl:variable name="items" select="key('glossaryitems-by-name',

                <xsl:when test="$items">
                    <xsl:for-each select="$items">
                        <xsl:variable name="href" select="@name"/>
                        <fo:inline text-decoration="underline"
                                <xsl:value-of select="term"/>
                    <fo:inline color="red">Broken glossarytt:

I don't know if this will quite cover what you want, but it certainly
works for me!

(Thanks to J.Pietschmann)


Nicola Harlow
Technical Author
The Program Management Group plc
tel:           +44 (0) 1937 547 171
direct:      +44 (0) 1937 547 165
fax:         +44 (0) 1937 547 154
mail:     nicola.harlow@xxxxxxxxxxxx
web:        http://www.pm-group.com

Current Thread


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.
First Name
Last Name
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.