From: Norman Walsh Date: Wed, 28 Nov 2001 13:19:36 +0000 (+0000) Subject: Added pi-attribute template X-Git-Tag: release/1.79.1~6^2~6101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d4bf743d1934e0a6f8c7c4a48eaeebc692b335d;p=docbook-dsssl Added pi-attribute template --- diff --git a/xsl/lib/lib.xsl b/xsl/lib/lib.xsl index 178fae16d..b5d7825f9 100644 --- a/xsl/lib/lib.xsl +++ b/xsl/lib/lib.xsl @@ -239,4 +239,54 @@ the default.units will be added to it. + + + +Extract a pseudo-attribute from a PI + +The pi-attribute template extracts a pseudo-attribute +from a processing instruction. For example, given the PI +<?foo bar="1" baz='red'?>, + + + +]]> +will return red. This template returns the first matching +attribute that it finds. Presented with processing instructions that +contain badly formed pseudo-attributes (missing or unbalanced quotes, +for example), the template may silently return erroneous results. + + + + + + filename + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + +