Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Dynamically create html? [Thread Next] Re: Dynamically create html?To: NULL Date: 6/3/2006 9:20:00 PM "Steve" <smsinger3@n...> wrote in message news:E1278BC3-F3EF-4100-B3E4-65499C85DE79@m...... > Hello. I am creating a table using using xslt which I will run in asp.net > 2.0, but I'm testing it in XmlSpy for now.. I want to "dynamically" start > another column of the table when I reach a certain attribute. Here is error > I get: > > xsl:if closing name element expected > > Here is the code: > > <xsl:template match="Category/Section"> > <xsl:if test="@StartNewColumnInSaveAsTemplate = 'true'"> > </td><td> > </xsl:if> > <h4><xsl:value-of select="@Title"/></h4> > <ul> > <xsl:apply-templates select="FieldDefinition" /> > </ul> > </xsl:template> > > Does anyone have a work-around for this or have a better design? Thanks!! > It might help if you give use a better idea of what you trying at achieve. On the face of it the idea of have an attribute in the XML telling the XSL how it should render the XML runs contrary to the concept that XSL is about presentation and XML is about content. Also how are 'Rows' represented in a single column? The fundamental problem you have is that the XSL must be well formed. > -- > Steve | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
