Subject: Re: [xsl] Subtype/inheritance in XML, how does XSLT handle it? From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx> Date: Sat, 27 Aug 2005 10:34:15 +0530 |
Hi Anupam, This is certainly possible in XSLT. I am curious what is the motivation to design this language? Regards, Mukul On 8/27/05, Agnisys Technology (P) Ltd. <agnisys@xxxxxxxxx> wrote: > Hi, > Can XSL handle subtypes/inheritance in XML? > > I have an XML document that "declares" a type "someA" and then uses it, as follows: > <top> > <A_DEC name="someA"> > <doc> aaaaaaa </doc> > <v1> 100 </v1> > </A_DEC> > > <B> > <A ref="A_DEC" name="someA"> > <doc> bbb </doc> > </A> > </B> > </top> > --------------------- > I want this to be transformed into : > A.doc = bbb > A.v1 = 100 > --------------------- > Note that doc value is overridden from the XML doc and the v1 value is used from the original > definition. > > How do I make XSLT use the entity "A_DEC" when it encounters A? > > I'm designing the XML language, so I have the flexibility. If this kind of problem is solved > differently in XML, please advice. > > I would much appreciate even partial answers or any pointers. > Thanks, > Anupam. > > P.S. I'm new to XML, and to this list, please excuse if this question has been answered before. > Unfortunately I couldn't find the answer when I searched.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Subtype/inheritance in XML, h, Agnisys Technology \ | Thread | Re: [xsl] Subtype/inheritance in XM, Jay Bryant |
Re: [xsl] Is it possible to dynamic, Mukul Gandhi | Date | Re: [xsl] Subtype/inheritance in XM, Jay Bryant |
Month |