Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Dynamically create html?

From: "Anthony Jones" <Ant@------------.--->
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




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent