[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

Subject: Re: Generating a <div>-toggling ID as a variable
From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 9 Jan 2017 05:55:25 -0000
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.