This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: transformation problem


Hello all,
even this doesnt work!!
here is what you we are doing  :
@name will return a node-set containing the attribute node with name "name".

possible problems i can think of:( even i am a beginner !!)
1.can this node  be converted to a string(ie will it return the 
string-value of the node).?
2.can we put "variables" in the name attribute of xsl:element tag?

i think more experienced people around would clarify......


Manu



>Sorry, but this will never, never work! But there is a really easy 
>alternative:
>
><xsl:element name="@name"/>
>
>Joerg
>
>marc.harrington@nebula.ie wrote:
>
>>Hi all !
>>I have the following tag in my xml doc.
>><element name="book"/>
>>I'm trying to extract the attribute and use it as a tag.
>><book/>
>>
>>I'm trying
>><xsl:template match="xsd:element">
>>  <"{@name}"/>
>></xsl:template >
>>But this doesn't work.
>>Any ideas ?
>>Also does anyone have any examples of schema annonations or adjuncts
>>working ?
>>Thanks
>>Marc Harrington
>
>
>--
>
>System Development
>VIRBUS AG
>Fon +49(0)341-979-7435
>Fax +49(0)341-979-7409
>joerg.heinicke@virbus.de
>www.virbus.de
>
>
>XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]