[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Q: copy-of select="@*"

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.