Altova Mailing List Archives

Re: [xsl] Transforming problem

From: Rick Taylor <taylor@-------->
Date: 11/11/2003 9:41:00 AM

Instead of using the copy-of on the "para" element match use 
apply-templates and add another template that matches the 
para/text().  This should get you closer to the desired output.

<xsl:template match="para">

<xsl:template match="para/text()">
        <xsl:value-of select="." />


At 06:41 PM 11/11/2003 +0000, you wrote:
Hi all

Long time lurker, still very novice in XML/SLT/Xanything...

I'm trying to put a simple page together just to show what XML can do. All 
is well and good, except that I can't seem to transform some child 
elements.  I want to wrap them in some HTML elements, but can't seem to 
get at them!  The one's in question are the <emp>, <person> and <position> 
elements within the parent <article>.

XML is here:

XSL is here:

The XSL is probably not particularly well written as I'm still new to 
this.  Any help/advice would be gratefully received.



XSL-List info and archive:

Rick Taylor
XML Developer
PPDM Association

XSL-List info and archive:


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.