|
Subject: RE: xsl transformation From: "Paul Beer" <paul.beer@xxxxxxxxxxxx> Date: Fri, 27 Aug 1999 16:43:22 +0100 |
MSXML doesnt process <xsl:element name="{name()}"/> ...it spits out:
<{name()}></{name()}>
is there some way to get the MSXML parser to look at a better transformation
schema?
_____________________________________
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 6:59 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: RE: xsl transformation
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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: xsl transformation, G. Hussain Chinoy | Thread | RE: xsl transformation, Bernhard Keil |
| DOM object to input source for XT a, Sebastien Sahuc | Date | Re: Generating TOCs or overviews?, Francis Norton |
| Month |