1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2009
    Rep Power

    Can't get result-document to work

    Can't get this code to work. Tells me result-document the href has already been created when I transform the XSL file in xmlspy. Likely to do with the filename variable but could be the foreach that's wrong.

    xml structure is root/dept/sub-dept if that helps. There can be multiple dept and multiple sub-dept in that.

      <xsl:for-each select="//dept/sub-dept"> 
    <xsl:variable name="name" select="sub-dept"/> 
    <xsl:variable name="filename" select="concat('output1/',$name,'.html')" />
     <xsl:value-of select="$filename" /> 
     <!-- Creating  --> 
    <xsl:result-document href="{$filename}" format="html">  
    appreciate the help.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2009
    Rep Power
    Helmut Hagemann Germany

    fallen to the bottom of the facts?
    I reach my hand and we go together

    wer lesen und google kann ist klar im Vorteil
    who read and google is able is clear in the advantage

IMN logo majestic logo threadwatch logo seochat tools logo