[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: An (almost) identity stylesheet

Subject: Re: An (almost) identity stylesheet
From: Jeff Sese <jeferson.sese@xxxxxxxxxxxx>
Date: Thu, 10 Apr 2008 16:49:16 +0800
Re:  An (almost) identity stylesheet
you just have to create a template for the @atttrib2:

<template match="@attrib2">
	<xsl:attribute name="@attrib2" select="'0'"/>

-- Jeff

On 04 10, 08, at 4:40 PM, Karol Krenski wrote:

Hi list,

I am a novice to XSLT, learned mainly form online tutorials. This XSLT
thing is killing me. Can't figure out how to transform my doc.xml:

<?xml version="1.0" encoding="UTF-8"?>
        <date attrib1='aaaaaaa' attrib2='bbbbbb'>25-02-08</date>
        <name attrib3='null'>AAAAAAAAAAAAAAA</name>
        <date attrib1='cccccc' attrib2='dddddd'>26-02-08</date>
        <name attrib4='null'>BBBBBBBBBBBBBBB</name>


<?xml version="1.0" encoding="UTF-8"?> <foo> <bar> <date attrib1='aaaaaaa' attrib2='0'>25-02-08</date> ^ <name attrib3='null'>AAAAAAAAAAAAAAA</name> </bar> <bar> <date attrib1='cccccc' attrib2='0'>26-02-08</date> ^ <name attrib4='null'>BBBBBBBBBBBBBBB</name> </bar> </foo>

Can somebody please suggest the correct stylesheet?

I am blindly typing mainly 'copy' or 'copy-of' in my templates and the
output generation mechanics make little sense to me. The docs, comparing
to other programing documentation seems hard to understand. Could
somebody suggest good docs, please?


Jeferson L. Sese jeferson dot sese at asiatype dot com Asiatype Inc. Suite 114 Columbia Tower Ortigas Ave., Greenhills Mandaluyong City 1550 Philippines Tel: +632-744-6262 Mobile: +63927-671-7901

Current Thread


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.
First Name
Last Name
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.