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

Re: grouping problem

Subject: Re: grouping problem
From: Terry Ofner <tofner@xxxxxxxxxxx>
Date: Wed, 28 Nov 2007 10:46:12 -0500
Re:  grouping problem
Thank you Ken for your great solution. As always, you are right on.

I do have a more general question/clarification that perhaps someone can address.

Say I want to replace an element and its attributes with a new element name and attribute(s). Say I also want to keep the mark-up of the content. I have noticed that if I use <xsl:value-of select "."/> the content mark-up is stripped out. So with this content:

<test>
  <selection name="u1pt01">
    <para> text, more text, <i>italic text.</i> </para>
  </selection>

</test>

The following template would strip out the <i> tags,

<xsl:template match="selection">
	<para aim:pstyle='bodytext'><xsl:value-of select "para"/><para>
</xsl:template>

producing

<test>
  <selection name="u1pt01">
    <para aim:pstyle='bodytext'> text, more text, italic text. </para>
  </selection>

</test>

Am I correct?

To avoid stripping content mark-up, I need to use <xsl:copy-of select "para"/>. When I do that, however, I get two <para> tags.

With copy-of, is it still possible to replace elements and attributes? I suspect that I am missing something very basic. Some clarification would be great.

By the way, does anyone else have trouble posting from a Mac using Mail? All day yesterday my posts were bounced back with this message:

ezmlm-reject: fatal: Sorry, I don't accept messages of MIME Content- Type 'multipart/alternative' (#5.2.3)

Terry

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.