[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] xsl:attribute problem


Subject: Re: [xsl] xsl:attribute problem
From: Jens Laufer <jens@xxxxxxxxxxxxxx>
Date: Mon, 2 Dec 2002 14:56:33 +0100

Am Montag, 2. Dezember 2002 13:06 schrieb Michael Kay:
> The output you are trying to achieve is not well-formed HTML, so the
> only way you can construct it with the HTML output method is to use
> disable-output-escaping.
>
> The <?---?> thing is not a processing instruction (because PIs can't
> occur inside attributes); if it were a PI, you would create it using
> xsl:processing-instruction, not xsl:pi.
>
> Michael Kay
> Software AG
> home: Michael.H.Kay@xxxxxxxxxxxx
> work: Michael.Kay@xxxxxxxxxxxxxx
>
Thanks Michael.
Yes, but how can I do it then? 

I think that should be a kind of standard problem. If something like that is 
not possible, then XSLT looses some of it's power.
And don't misunderstand me, I don't want I quick "workaround solution".
I am actually looking for something which suits to the XSLT specification...
I know that stuff like href="<?php echo $test?>" or href="<%= test%>" is 
actually not nice, but there is no other way to do it...
Regards,
Jens

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords