Re: number+document
Brought to you by:
ovidiu
From: abbouh <ab...@ra...> - 2003-06-19 09:14:31
|
my input file is like: ........... <dicodoc lang=3D"FR"> .................... <doccontent> ..................... <docbody> ...................... </docbody> <chapmod docref=3D"document1" lang=3D"FR"/> <chapmod docref=3D"document2" lang=3D"FR"/> <chapmod docref=3D"document3" lang=3D"FR"/></doccontent> </dicodoc> and "document1.xml" is like: ............................. <doccontent> <docbody> <chap1><ht>title1</ht> ....................... </chap1> </docbody> </doccontent> "document2.xml" is like: ............................. <doccontent> <docbody> <chap1><ht>title2</ht> ....................... <chap2><ht>paragraph1</ht> <chap3><ht>ss-paragraph1</ht> ............................... </chap3> <chap3><ht>ss-paragraph2</ht> ................................ </chap3> <chap3><ht>ss-paragraph3</ht> .............................. </chap3> ................................ </chap2> <chap2><ht>paragraph2</ht> ................................ </chap2> </chap1> </docbody> </doccontent> "document3.xml" is like: ............................. <doccontent> <docbody> <chap1><ht>title3</ht> ....................... </chap1> </docbody> </doccontent> abbouh a =E9crit : > i want to use nuber for each "ht" node in several document > so i use this xsl file: > <xsl:for-each select=3D"//doccontent/chapmod"> > <xsl:for-each > select=3D"document(concat(string(./attribute::docref),'.xml'))//ht"> > <xsl:choose> > .... > <xsl:number level=3D"multiple" count=3D"chap1|chap2|chap3" format=3D"A= .1"/> > .. > <xsl:value-of select=3D"."/> > .. > </xsl:for-each> > </xsl:for-each> > > and receive this output: > > A title1 > A title2 > A.1 paragraph1 > A.1.1 ss-paragraph1 > A.1.2 ss-paragraph2 > A.1.3 ss-paragraph3 > A.2 paragraph2 > A title3 > > but what i want to get is: > > A title1 > B title2 > B.1 paragraph1 > B.1.1 ss-paragraph1 > B.1.2 ss-paragraph2 > B.1.3 ss-paragraph3 > B.2 paragraph2 > C title3 > > any idea, > thanks > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission= ! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > Xslt-process-users mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xslt-process-users |