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

RE: Copying nodes

Subject: RE: Copying nodes
From: Américo Albuquerque <aalbuquerque@xxxxxxxxxxxxxxxx>
Date: Tue, 10 Dec 2002 19:05:10 -0000
RE:  Copying nodes
Hi.
I don't know what you trying to do but try this, it will copy everything
and will change your attribute:

<xsl:template match="categ">
  <xsl:copy>
    <xsl:apply-templates select="@*"/> 
    <xsl:copy-of select="*"/>
  </xsl:copy>		
</xsl:template>

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

<xsl:template match="@URL">
 <xsl:copy>http://www.mydomain.com</xsl:copy>
</xsl:template>


-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Juan Carlos
Gonzalez
Sent: terça-feira, 10 de Dezembro de 2002 18:11
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Copying nodes


I'm sorry but still doesn not work.

-----Original Message-----
From: Américo Albuquerque [mailto:aalbuquerque@xxxxxxxxxxxxxxxx]
Sent: Tuesday, December 10, 2002 11:42 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Copying nodes


Hi.
Use:
<xsl:template match="@URL">
<xsl:copy>http://www.mydomain.com</xsl:copy>
</xsl:template>

Hope that this helps

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On
Behalf Of Juan Carlos
Gonzalez
Sent: terça-feira, 10 de Dezembro de 2002 14:44
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Copying nodes


Hi:

I have the following templates for copying nodes and
it's attributes which work OK:

<xsl:template match="/">
  <xsl:apply-templates select="/root/categ"/>
</xsl:template>

<xsl:template match="categ|@*">
  <xsl:copy>
    <xsl:apply-templates select="@*"/> 
    <xsl:copy-of select="*"/>
  </xsl:copy>		
</xsl:template>

What I'm trying to do is to change the value for a
specific attribute, for that purpose I have created
another template but it doesn't seem to execute at
all:

<xsl:template match="@URL">
   http://www.mydomain.com
<!-- or 
    <xsl:copy-of select="http://www.mydomain.com"/>
-->  
</xsl:template>
 
Thanks.



__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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


 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.