This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Populate attribute values?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]