bluephoenix
12-30-2002, 06:05 PM
Well, I've decided it's time for me to learn XML... (Yes, I'm a newbie, but eager to learn).
I'm attempting to create an XML document which uses an external DTD and an external xsl to create an HTML document.
My DTD defines my share tag as:
<! ELEMENT share EMPTY >
<! ATTLIST share
type CDATA #REQUIRED
APY CDATA #REQUIRED
APR CDATA #REQUIRED
minBal CDATA #REQUIRED>
While my XML document resemebles:
<rates>
<share type="Savings" APY="2.00" APR="2.02" minBal="10.00"/>
<share type="MoneyMarket" APY="3.00" APR="3.03" minBal="1000.00"/>
<share type="IRA" APY="2.00" APR="2.02" minBal="10.00"/>
</rates>
Now I want to be able to generate a table with that information. I know how to select the particular attribute with <xsl:attribute name="type">, but how do I display the value of that attribute?
Thanks everyone.
I'm attempting to create an XML document which uses an external DTD and an external xsl to create an HTML document.
My DTD defines my share tag as:
<! ELEMENT share EMPTY >
<! ATTLIST share
type CDATA #REQUIRED
APY CDATA #REQUIRED
APR CDATA #REQUIRED
minBal CDATA #REQUIRED>
While my XML document resemebles:
<rates>
<share type="Savings" APY="2.00" APR="2.02" minBal="10.00"/>
<share type="MoneyMarket" APY="3.00" APR="3.03" minBal="1000.00"/>
<share type="IRA" APY="2.00" APR="2.02" minBal="10.00"/>
</rates>
Now I want to be able to generate a table with that information. I know how to select the particular attribute with <xsl:attribute name="type">, but how do I display the value of that attribute?
Thanks everyone.