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

Re: problems with xsl:copy instruction

Subject: Re: problems with xsl:copy instruction
From: Rahil <qamar_rahil@xxxxxxxxxxx>
Date: Thu, 02 Jun 2005 13:26:28 +0100
xslt copy entire output except
Sorry wanted to reply to your post much earlier but wasnt in town.

Andrew Welch wrote:

My understanding of how the <xsl:copy> and <xsl:copy-of> commands is weak and so am having trouble figuring out the exact problem.



The rest of the stylesheet also needs looking at, eg:


<xsl:for-each select="/*/*/O/Class[text()=$notPresent]">
  <xsl:apply-templates select="/*/*/O/Class[text()=$notPresent]"/>
</xsl:for-each>

and:

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

...are both a bit off but I'm guessing you are trying things out?




Yeah I am trying to guess work the code but am not seeing any success coz I dont understand the logic. Ive posted a new query as Ive had to convert my input.xml to an HTML format. But I know Im going to run into problems with trying to copy entire chunks of the HTML output except when certain conditions are met.

Will appreciate your help with it when I do reach that stage. If theres any online material I can read with different examples of using xsl:copy and xsl:copy-of it would help a lot. The book material and some of the online stuff Ive read aint enuf at this stage for me.

Thanks
Rahil

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.