Article View: comp.text.xml
Article #56Formatting xml attributes via stylesheets.
From: Torsten Lund
Date: Tue, 08 Aug 2000 00:00
Date: Tue, 08 Aug 2000 00:00
37 lines
1733 bytes
1733 bytes
Hello. I have created a xml document. I have also created a xsl stylesheet to transform the data into a html presentation. However, i don't know how to process attributes in the style sheet. Maybe an example would clearify :o) The xml document <Unit id="0"> ... <errordescription>Code 564:</errordescription> ... </Unit> The xsl style sheet ... <body> <xsl:value-of select="Unit/errordescription"> </body> ... when viewing the xml document in IE, it writes "Code 564:" as it should, but how do I print out the value of "id" in the xml document?!? What is the xsl syntax to do this ?!? -- Med venlig hilsen / Best Regards: Torsten Lund Partner Electric E-mail: tel@pel.dk TLF: +45 73 20 00 00 Fax: +45 73 20 00 01 DDI Fax : +45 73 24 15 17 Website: http://www.pel.dk ------------------------------------------------------- Please remove *nospam* in order to reply
Technical Details
Message-ID:
<8moit0$fca$1@news1.tele.dk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cf74,3c3ba754dd86eb08,start X-Google-Attributes: gid10cf74,public X-Google-Thread: 10cf80,3c3ba754dd86eb08,start X-Google-Attributes: gid10cf80,public X-Google-Thread: 1047a4,3c3ba754dd86eb08,start X-Google-Attributes: gid1047a4,public X-Google-Thread: 115169,3c3ba754dd86eb08,start X-Google-Attributes: gid115169,public From: "Torsten Lund" <tel*nospam*@pel.dk> Subject: Formatting xml attributes via stylesheets. Date: 2000/08/08 Message-ID: <8moit0$fca$1@news1.tele.dk> X-Deja-AN: 655766210 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Organization: Customer at Tele Danmark Erhverv X-MSMail-Priority: Normal Newsgroups: comp.text.xml,dk.edb.internet.webdesign,microsoft.public.xml,netscape.public.mozilla.layout.xslt