Subject: Re: [xsl] given @id="1.2.3" .... -1 || +1 to the "3" in @id?? From: "Christopher R. Maden" <crism@xxxxxxxxx> Date: Mon, 02 Jul 2001 21:33:57 -0700 |
the sections for the prev & next links are in different xml files, so I can't use xpath to determine if it's the first or last element. I will have an attribute first="1.1.1" and last="1.1.3" in each <section> element. Then I can compare if the current "id" attribute is equal to first or last and determine whether or not there is a prev or next link.
concat( substring-before(@id,'.'), '.', substring-before(substring-after(@id,'.'),'.'), '.', number(substring-after(substring-after(@id,'.'),'.'))+1 )
-Chris -- Christopher R. Maden, XML Consultant DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training <URL: http://crism.maden.org/consulting/ > PGP Fingerprint: BBA6 4085 DED0 E176 D6D4 5DFC AC52 F825 AFEC 58DA
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] given @id="1.2.3" .... -1, Anthony E. | Thread | Re: [xsl] given @id="1.2.3" .... -1, Anthony E. |
RE: [xsl] Result Tree Fragment Prob, Kumar . Shailendra | Date | RE: [xsl] given @id="1.2.3" .... -1, Christopher R. Maden |
Month |