RE: [xslt] outputing html



OK, how about a ECR? I did not see anything in the spec on this...

I believe that if you do not declare a top level parameter in the XSLT and
you use that parameter you should get nothing as the result, similar to
matching a node that does not exist.  For example I have an
XSLT-presentation-layer that is used in several contexts. I will need output
like:

<IMG SRC="/images/img.gif">
<IMG SRC="/tool-view/images/img.gif">
<IMG SRC="/site-view_alt1/images/img.gif">

The XSLT I have been using succesfully in other processors is:

<IMG SRC="{$site_context}/images/img.gif"/>

If there is no top-level parameter "site_context" then I do not need to
maintain separate XSLs or do expensive "xsl:choose" operations.

best,
-Rob

> -----Original Message-----
> From: xslt-admin@gnome.org [mailto:xslt-admin@gnome.org]On Behalf Of
> Daniel Veillard
> Sent: Sunday, October 28, 2001 2:34 PM
> To: xslt@gnome.org
> Subject: Re: [xslt] outputing html
>
>
> On Sun, Oct 28, 2001 at 12:08:11PM -0800, Robert Koberg wrote:
> > Another thing I am noticing is that top level params are being accepted
> > whether they are in the XSLT or not, for example:
> [...]
> > I can explain why this is important if you feel it is a low
> priority bug.
>
>   Always a good idea to point at the related section of the spec
> if you think there is a non-conformance problem, yes.
>
> Daniel
>
> --
> Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
> veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
> http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
> _______________________________________________
> xslt mailing list
> xslt@gnome.org
> http://mail.gnome.org/mailman/listinfo/xslt
>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]