[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
xsl accessing attributes
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.