Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 4th, 2005, 11:05 AM
Registered User
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default elements to attribute value

Hi,

i've this XML-structure:

...
<Ident>
    <activ>1</active>
    <Product>
        <ID>051845</ID>
        <Value>car</Value>
    </Product>
</Ident>
...


and i will:


<mytest ValType="String" Type="ATTR" Value="&lt;Ident&gt;&lt;activ&gt;1&lt;/active&gt;&lt;Product&gt;&lt;ID&gt;051845&lt;/ID&gt;&lt;Value&gt;car&lt;/Value&gt;&lt;/Product&gt;&lt;/Ident&gt;"/>


This dosn't work:


<mytest ValType="String" Type="ATTR">
    <xsl:copy-of select="Ident"/>
</mytest>


and this also not:


<mytest ValType="String" Type="ATTR">
    <xsl:variable name="temp">
        <xsl:copy-of select="Ident"/>
    </xsl:variable>
    <xsl:attribute name="Value">
        <xsl:value-of select="$temp"/>
    </xsl:attribute>
</mytest>


What's wrong?

Thanks for your time!

Richie







Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace an attribute with another attribute georgemeng XSLT 8 June 10th, 2008 11:04 AM
unique attribute names for form elements fishmonkey XSLT 3 March 16th, 2008 07:46 PM
XSLT - Grouping by Attribute but same elements vinaura XSLT 2 July 18th, 2007 10:34 PM
elements with same name kfir XML 8 May 1st, 2006 07:42 AM
Access to attribute values from class of attribute jacob C# 1 October 28th, 2005 01:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.