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

How to reference nodes that have not yet been created

Subject: How to reference nodes that have not yet been created ?
From: "belangour abdessamad" <abdessamad.belangour@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 17 Oct 2003 20:54:09 +0200
have not been created
Hi all and thanks,
How to reference nodes that have not yet been created (i.e located on the
xml file you want to generate)?

Example:
    I have an xsl program that creates datatypes at the begining of the
file. I     have then to reference them every time that i encounter a
variable with     a given type.



<xsl:template name="createDataTypes">
     <dataType>
       <xsl:attribute name="id"><xsl:value-of
select="generate-id.)"/></xsl:attribute>
       <xsl:attribute name="name">integer</xsl:attribute>
     </dataType>
        ...
</xsl:template>

<xsl:template match="myVariable">
    <variable>
        <xsl:attribute name="id"><xsl:value-of
select="generate-id(.)"/></xsl:attribute>
        <xsl:attribute name="name">integer</xsl:attribute>
        <xsl:attribute name="type"><xsl:value-of
select="#####getTypeID######"></xsl:attribute>
     </variable>
        ...
</xsl:template>


 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.