[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Use id instead of name in onechunk?
Hi,
You can set the stylesheet parameter 'generate.id.attributes'
to 1 to get that result. That causes the stylesheet to generate id
attributes instead of named anchors.
From: Jeffrey Chimene
Sent: Tuesday, December 11, 2012 3:50 PM
To: DocBook Apps
Subject: [docbook-apps] Use id instead of name in
onechunk? I'd like to generate the following HTML. Note the presence of the ID attribute. <div class="section" title="Getting Started">from the following XML <section id="&idGettingStarted;"> As you know, the ONECHUNK stylesheet generates the following HTML. Note the presence of the NAME attribute. <div class="section" title="Getting Started"> The issue is that I want to present this document using _javascript_. There exists no "getElementByName" that is the equivalent of the DOM query method getElementById(). As a workaround, I run the generated HTML through a post-processor to replace all name attribute names with the id attribute name. tia, jec |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]