[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Populate attribute values?

Subject: Populate attribute values?
From: "Medina, Edward" <emedina@xxxxxxx>
Date: Mon, 24 Apr 2000 11:04:17 -0400
populate attributes
Heelllo Nurse!
My question is concerning attribute values.  Is it possible to populate an
attribute value with a 
file which contains a list of n values?  What I want to do is have the
person authoring the
document, to enter a trigraph value according to his document and the value
would be as 
an enumerated list from an extensive list of trigraph values.  I know that I
can use
the Entity to do this, but I didn't want to do that (or better yet, my boss
didn't).  
I think the best method would be to use an Entity.  Anyone has an idea how
do this?

DTD

<!ENTITY % trigraph"
attribute (AAA|AAB|AAC|AAD|AAE|AAF|...
	  ZZW|ZZX|ZZY|ZZZ)    #REQUIRED ">

XML

<!ELEMENT para (title|text)*>
<!ATTRIBUTE para
		%trigraph >

XSL  

<xsl:value-of select="para/@attribute"/>

Would there be a better way?

Eddy 

Thanks!


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.