[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Generating a <div>-toggling ID as a variable
On Mon, Jan 09, 2017 at 05:32:51AM -0000, Charles Muller acmuller@xxxxxxxxxxxxxxx scripsit: > Writing the javascript and HTML code to toggle one section based on a <div> > ID is no problem, but in order for each <hom> section of each of the many > <entry(s)> in the dictionary to be toggled individually, each one would need > its own separate ID to be generated. I've spent a couple of hours > researching this, and from what I've found, I'm not sure if it's possible. .... > So the crux of the matter seems to be whether the 'myDIV' that is used in > the Javascript function, which appears as the <div id> below, can be turned > into a variable that will function separately for each entry. Does anyone > know if this is possible? I'm unsure why a pre-pass to run generate-id() to create an id attribute for each hom element wouldn't work? There are other ways to approach this (you can synthesize an ID from the contents), but I'd think the easy way would be to use generate-id() and feed that version of the XML document into the rest of the process. It's quite possible I'm missing something. -- Graydon
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|