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] How can I find the elements which are not yetstyled in docbook5


Hi Dave,
   Thank you for the reply.Yes it works fine and shows the elements which have not been styled.I am also using chromes Inspect Element option to find them out.
Thank you
Sanjaya

On Tue, Feb 15, 2011 at 4:22 PM, Dave Pawson <davep@dpawson.co.uk> wrote:
On Tue, 15 Feb 2011 16:18:48 +0530
Sanjaya Liyanage <sanjayacl@gmail.com> wrote:

> Hi dev,
>         I tested some docbook XMLs with some XSL sheets to see what
> are the elements which have been styled properly.And found out that
> it's hard to recognise the elements which have not been styled in
> that manner.Can Anyone tell me a way to find those elements which
> have not yet been styled?
>
> Thank you
> Sanjaya

Create a stylesheet which imports the main docbook one.
Then add a template to 'catch anything else'

<xsl:template match="*">
   <xsl:message>
     Element <xsl:value-of select="name(..)"/>/<xsl:value-of
select="name(.)"/> Not styled </xsl:message>
 </xsl:template>

That names the element and its parent.

HTH


--

regards

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org




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