Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
| Search | Today's Posts | Mark Forums Read
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 4th, 2006, 09:42 AM
Authorized User
Points: 345, Level: 6
Points: 345, Level: 6 Points: 345, Level: 6 Points: 345, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2005
Location: , , .
Posts: 71
Thanks: 10
Thanked 0 Times in 0 Posts
Default Grouping multiple paragraph styles under 1 parent

Hai,

I have grouped the paragraph styles of same type using your method as in


    <xsl:template match="w:p" mode="insideBulletList">

        <li><xsl:apply-templates /></li>


        <xsl:apply-templates
select="following-sibling::*[1][self::w:p/w:pPr/w:pStyle[@w:val='BulletList']]"
             mode="insideBulletList" />

    </xsl:template>


My Wordml contains the following paragraph styles

w:p[w:pPr/w:pStyle[@w:val="para1"]
w:p[w:pPr/w:pStyle[@w:val="para2"]
w:p[w:pPr/w:pStyle[@w:val="para3"]


I want to group the above 3 different styles under one parent node like

<newnode>
    <para1>38293</para1>
    <para2>sdjfkj</para2>
    <para3>eiruwio</para3>
</newnode>
I brought the above output using <xsl:for-each select="*" group-starting-with=""> method. But I want the above output using <xsl:template match> method so that it will maintain the position.

Can you help me!!!!!!!!!


__________________
Thanks,
Rocxy.




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to control Styles in Multiple Xsl srkumar XSLT 9 January 9th, 2008 04:25 PM
Value of parent element of current-grouping-key() bonekrusher XSLT 2 September 9th, 2007 06:29 AM
grouping multiple xml files in one file bcogney XSLT 3 April 21st, 2006 03:58 AM
Multiple xsl styles applied to central xml doc patgibbs1 XSLT 1 March 20th, 2006 11:52 AM
Multiple Grouping in List ROCXY XSLT 0 January 7th, 2006 05:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.