OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] add 'id' afterwards automatically


At 16:53 14/10/2003 +0500, David Tolpin wrote:
> > Is there an easy way to process existing DocBook XML files and add to all
> > elements an "id" attribute which do not already have one?
> >
>
>I would do it in Java in two passes.


... or an identity pass,

<xsl:template name="addId">
<xsl:when test="@id">
    copy through
<xsl:otherwise>
    attribute name='id'
      generate-id()
    /attribute
</xsl:otherwise>

then call this from all node()'s?

HTH DaveP




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]