|
Subject: RE: [xsl] A little cross referencing problem From: "KIENLE, STEVEN C [IT/0200]" <steven.c.kienle@xxxxxxxxxxxxx> Date: Wed, 22 Aug 2001 11:33:22 -0500 |
Hi Jeni,
> > The code above will get a nasty runtime error if a dir attribute
> > contains an illegal value. This leads to my favorite piece of code
> > which guards the invocation of the dynamically selected key by
> > having a key lookup in the stylesheet whether the key actually
> > exists.
>
> Very sweet :) You could do the same kind of thing for decimal formats
> to use with format-number().
>
> Of course the only slight drawback is that the document('') call will
> only get the current stylesheet document, and therefore won't search
> for keys defined in imported or included stylesheets (or indeed
> stylesheets in which this one is imported or included).
Couldn't you, potentially, write a called template which would recursively
open included or imported stylesheets and check in them as well?
>
> Perhaps functions like key-available() and decimal-format-available()
> would be handy.
Certainly this would be easier, better and quicker.
Steve
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] A little cross referencin, Jeni Tennison | Thread | Re: [xsl] A little cross referencin, Jeni Tennison |
| RE: [xsl] one element and two names, DuCharme, Bob (LNG) | Date | RES: [xsl] XMLDOM xml to html trans, Carlos Durand Silves |
| Month |