[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
At 2004-01-26 16:00 +0000, you wrote:
Just remember you aren't modifying anything, you are constructing a single result while processing one or many sources.
Again, I'm lost on your use of the standardized terminology: when you say "get", at which node are you and what do you want to do when you "get" the attribute? When you say "specific elements within the node", elements can only be "within" other elements, and they can be children or descendants? The use of <xsl:choose> is for deciding between alternative construction components for the result tree ... I'm not sure what that has to do with your context since you haven't described your context.
It really isn't clear what your question is, so I cannot answer it.
Can you try again?
................... Ken
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] copying attributes to all child nodes
Subject: Re: [xsl] copying attributes to all child nodes From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 26 Jan 2004 12:02:25 -0500 |
At 2004-01-26 16:00 +0000, you wrote:
I think I understand the process a bit better, and hopefully my terminology will improve over time!
Just remember you aren't modifying anything, you are constructing a single result while processing one or many sources.
One last question - If I wanted to get the attribute applied to only specific elements within the node, woudl I be better with a xsl:choose? or a select?
Again, I'm lost on your use of the standardized terminology: when you say "get", at which node are you and what do you want to do when you "get" the attribute? When you say "specific elements within the node", elements can only be "within" other elements, and they can be children or descendants? The use of <xsl:choose> is for deciding between alternative construction components for the result tree ... I'm not sure what that has to do with your context since you haven't described your context.
It really isn't clear what your question is, so I cannot answer it.
Can you try again?
................... Ken
<top.level.node attributeX="123456">
<next element attributeXYZ="654321">
<next2element attributeX="123456"> this is some text</next2element>
<next2element attributeX="123456"> this is some more text </next2element>
</nextelement>
</top.level.node>
-- Public courses: sign up for one or both soon to reserve your seat! Each week: Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO Washington, DC: 2004-03-15 San Francisco, CA: 2004-03-22 Hong Kong, China: 2004-05-17 Bremen, Germany: 2004-05-24 World-wide on-site corporate, government & user group XML training
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] copying attributes to all, Terence Mac Goff | Thread | Re: [xsl] copying attributes to all, George Cristian Bina |
[no subject], Andrew Welch | Date | Re: [xsl] copying attributes to all, George Cristian Bina |
Month |
Keywords