[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Accessing attribute values defined in DTD in XSL
Subject: Accessing attribute values defined in DTD in XSL
From: "Amit Rekhi" <amitr@xxxxxxxxxxxxx>
Date: Wed, 4 Nov 1998 15:52:07 +0530
|
Hello,
What kind of a syntax do I need to use in the pattern rules of my XSL
stylesheet in order to access attribute values defined in a DTD?
Let me
explain.
Let's
say I have a xml file (say Test.xml):-
NAME.XML
<?xml version="1.0">
<!DOCTYPE Name SYSTEM "Name.dtd">
<Name>Amit </Name>
NAME.DTD
<!ELEMENT Name (#PCDATA)>
<!ATTLIST
Name
address CDATA #FIXED "1213,New
Colony"
city CDATA #FIXED "New Delhi"
country CDATA #FIXED "India">
NAME.XSL
<xsl:stylesheet>
<xsl:template
match="Name">
[......... Some
Template........]
</xsl:template>
</xsl:stylesheet>
QUESTION
1) How do I access "address","city","country"
attributes of <Name> defined in Name.dtd in the match pattern of the
pattern rule for <Name>?(See Name.xsl above)
2) How do I access "address","city","country"
attributes of <Name> defined in Name.dtd in the template of the pattern
rule for <Name>?(See Name.xsl above)
Thanks in advance for any
answers,
AMIT
|
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|