This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Populate attribute values?
- To: xsl-list at mulberrytech dot com
- Subject: Populate attribute values?
- From: "Medina, Edward" <emedina at btg dot com>
- Date: Mon, 24 Apr 2000 11:04:17 -0400
- Reply-To: xsl-list at mulberrytech dot com
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