Topic
  • 2 replies
  • Latest Post - ‏2012-02-01T17:14:28Z by SystemAdmin
SystemAdmin
SystemAdmin
265 Posts

Pinned topic xsl open tag syntax

‏2012-02-01T12:07:42Z |
Hi guys,

I need a little help with this.

I want to get the following out of an xsl transformation:

<reportspec name="MA-TA-013-AS">

tried to use something like this:

<reportspec name="*<*xsl:value-of select="name" disable-output-escaping="yes" />">

but xmlspy throws an error. <
I think the syntax is not well formed. Anybody can tell me the correct syntax for that?

Thanks
Updated on 2012-02-01T17:14:28Z at 2012-02-01T17:14:28Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    265 Posts

    Re: xsl open tag syntax

    ‏2012-02-01T15:19:11Z  
    Maybe you are meant to use a format usually called avt (attribute value template). In that case, it is this with "name" being a child element.
    
    <reportspec name=
    "{name}" />
    

    It is equivalent to a more elaborate form.
    
    <reportspec> <xsl:attribute name=
    "name"> <xsl:value-of select=
    "name" /> </xsl:attribute> </reportspec>
    
  • SystemAdmin
    SystemAdmin
    265 Posts

    Re: xsl open tag syntax

    ‏2012-02-01T17:14:28Z  
    Maybe you are meant to use a format usually called avt (attribute value template). In that case, it is this with "name" being a child element.
    <pre class="jive-pre"> <reportspec name= "{name}" /> </pre>
    It is equivalent to a more elaborate form.
    <pre class="jive-pre"> <reportspec> <xsl:attribute name= "name"> <xsl:value-of select= "name" /> </xsl:attribute> </reportspec> </pre>
    Hi tsuji,

    thank you buddy, this is the solution.

    Hope I can help you out some day, too

    Cheers

    Ingo