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
 
           
Current Thread