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

RE: xsl transformation

Subject: RE: xsl transformation
From: "G. Hussain Chinoy" <hussain@xxxxxxxxxxxxxxx>
Date: Fri, 27 Aug 1999 12:58:38 -0500 (CDT)
hussain chinoy
Paul,

	I can't recall if MSXML can do this, but according to:

	XPath
	http://www.w3.org/TR/xpath#section-Node-Set-Functions
	XSL
	http://www.w3.org/TR/WD-xslt#dt-attribute-value-template

	you should be able to do this:

<xsl:element name="{name()}"/>

	since the name attr of the xsl:element is treated as an 'attribute
value', you have to enclose the node name() function in {}

	Oh, it looks like there's an undocumented <xsl:node-name/> in the
ie implementation, though I don't think it works in xsl:element

	H

-----------------------------------------
G. Hussain Chinoy
hussain@xxxxxxxxxxxxxxx
Chief Information Architect, CEO
Granularity Information Architecture, Inc.
http://www.granularity.com/

On Fri, 27 Aug 1999, Paul Beer wrote:

> i am used to speaking in terms of CF.  By dynamic I mean being able to use
> this:
> 
> <xsl:template match="address">
>   <xsl:element name="text()">
> </xsl:template>
> 
> when I do that, it creates a node like this :  <test()></text()>
> 
> what i want is an element with the value of test() ....  :
> <address></address>
> 
> 
> _____________________________________
> 
> Paul Beer
> Backsoft Corporation
> paul.beer@xxxxxxxxxxxx
> http://www.backsoft.com
> (888) 222-6047 Phone
> 
> 'Dynamic XRP Solutions'
> 
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of G. Hussain Chinoy
> Sent: Friday, August 27, 1999 3:50 PM
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: Re: xsl transformation
> 
> 
> 
> Paul,
> 
> 	You should be able to use:
> 
> 	http://msdn.microsoft.com/xml/reference/xsl/xsl_element.asp
> 
> 	What do you mean by "dynamically"?
> 
> 	H
> 
> -----------------------------------------
> G. Hussain Chinoy
> hussain@xxxxxxxxxxxxxxx
> Chief Information Architect, CEO
> Granularity Information Architecture, Inc.
> http://www.granularity.com/
> 
> On Fri, 27 Aug 1999, Paul Beer wrote:
> 
> > can anyone tell me how to use MSXML/XSL to dynamically create an element
> > name?
> > ex. <xsl:element name="Value of Node">
> >
> >
> >
> >
> > _____________________________________
> >
> > Paul Beer
> > Backsoft Corporation
> > paul.beer@xxxxxxxxxxxx
> > http://www.backsoft.com
> > (888) 222-6047 Phone
> >
> > 'Dynamic XRP Solutions'
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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