Q: copy-of select="@*"

Subject: Q: copy-of select="@*"
From: Michael Bierenfeld <michael.bierenfeld@xxxxxxxxxxxx>
Date: Fri, 20 Oct 2000 13:54:16 +0200
Hello,

I am using cocoon with xsp+xsl. Got a small
problem there by using the following xml-content :

<dynalink target="whatever.xml" command="shutdown"
img="powerdown.jpg"/>

this is caught by

<xsl:template match="dynalink">

	<xsp:logic>

	String realUrl = generateUrl 
		("<xsl:value-of select="@target"/>",
		"<xsl:value-of select="@command"/>");

	</xsp:logic>

	<link>


		<xsl:copy-of select="@*"/>

		<xsp:attribute name="href">
			<xsp:expr>realUrl</xsp:expr>
		</xsp:attribute>

		<xsl:apply-templates/>

	</link>

</xsl:template>

This does some nifty stuff with @target and
@command. Then a "new" tag <link> is fired all
attributes are copied "into" this new tag. 

This is a *Problem*. If "@target" is used in <a
href = ...> MS-Explorer opens up a new window if
there is no frameset. I wanna get rid of that.

So how can I pass attributes excluding some that I
dont wanna pass. @target and @command in that
particular case. Somethine like

<xsl:copy-of select="@* not "@target" not @href"
.....

Sorry I am shure its in the doc. But I need a
hint. Its Friday and I am ready for the Weekend.

Regards

Michael


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


Current Thread