Re: [docbook-apps] Re: help with xslt

From
Jirka Kosek <>
Date
2008-09-14T08:08:20+00:00
ID
Thread
Re: [docbook-apps] Re: help with xslt
Sam Steingold wrote:
> this takes care of the easy part.
> the hard part is translating an array of integers #(11 1 2 1 2) to
> either sec_11-1-2-1-2 or 11_abab.

concat('sec_', translate(substring-before(substring-after('#(11 1 2 1
2)', '#('), ')'), ' ', '-'))

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail:       http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------