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

Re: Process some elements, but not others...

Subject: Re: Process some elements, but not others...
From: S Woodside <sbwoodside@xxxxxxxxx>
Date: Fri, 14 Feb 2003 02:00:27 -0500
Re:  Process some elements
I've been thinking recently about using namespaces to solve this, well, my situation is more complex but it seems to be a good tool to use (except it's not working for me right now, but I'm sure that's my fault) e.g.,

<myelement>
    <p>This is <ref xmlns="foobar">the</ref> text node</p>
</myelement>

--------------------

<xsl:stylesheet  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:foobar="foobar"  version="1.0">
<xsl:template match="foobar:ref">
  <!--whatever-->
</xsl:template>

it's probably overkill for your example but I think it's a more flexible solution in the long run?

simon

On Thursday, February 13, 2003, at 09:57 PM, Ted Stresen-Reuter wrote:

Hi,

I have an xml document whose elements contain html as in the following example:

<myelement>
    <p>This is <ref>the</ref> text node</p>
</myelement>

What I'd like to be able to do is transform just the ref element and copy all the others.

Any suggestions? The last time I asked a question here everyone was _very_ helpful and I'm very appreciative so thanks!

Ted Stresen-Reuter

---
www.simonwoodside.com

<http://ThisURLEnablesEmailToGetThroughOverzealousSpamFilters.org>


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.