IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Undefined variable error in XSLT for WORD 2007 Options · View
RobynWallace
Posted: Tuesday, June 25, 2013 7:48:06 PM
Rank: Newbie

Joined: 12/2/2009
Posts: 5
I am using a common sps to generate XSLT for HTML, FO and RTF. I am trying to use the same sps to generate XSLT for Word2007 but I get an error stating that my variable is undefined (in this case 'numRows').

Relevant portion of the generated XSLT:

<altova:TextRun>
<xsl:variable name="numRows" select="count(./Image)"/>
</altova:TextRun>
<altova:ContentHolder>
<xsl:call-template name="Gallery">
<xsl:with-param name="rows" select="$numRows"/>
</xsl:call-template>
</altova:ContentHolder>


vlad
Posted: Tuesday, June 25, 2013 8:19:54 PM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
Not sure what you expect other users in this forum to tell you based on your minimal information, except - take all your files and go to Altova Support with them
RobynWallace
Posted: Wednesday, June 26, 2013 3:24:20 PM
Rank: Newbie

Joined: 12/2/2009
Posts: 5
I was expecting that someone else may have had this issue since the stylesheet generated by Stylevision clearly defines the variable just before it is referenced and this error does not occur in the RTF, HTML or FO stylesheets that are generated. I admit that I am not very familiar with the XSLT to Word2007 process, but it seems like a basic question. I get this error for every variable that I have defined in my sps.
vlad
Posted: Wednesday, June 26, 2013 4:37:54 PM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
Weird. Talk to Altova Support
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.