Developer forum

Forum » Templates » XSLT - How to show VariantCombinations on BOMProducts?

XSLT - How to show VariantCombinations on BOMProducts?

Michael Nielsen
Reply
This is my XSLT

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" omit-xml-declaration="yes" indent="yes" encoding="utf-8"/>
    <xsl:param name="html-content-type"/>
    <xsl:variable name="availableloops" select="'BOMProducts'" />
    <xsl:template match="/Template">
      <textarea><xsl:copy-of select="." /></textarea>
        <xsl:apply-templates select="/Template" mode="product"></xsl:apply-templates>
    </xsl:template>
  
    <xsl:template match="/Template" mode="product">     

    </xsl:template>
</xsl:stylesheet>
Which works fine, but when adding VariantCombinations to availableloops the page cannot be loaded, Firefox gives the following error:
"The connection was reset.
The connection to the server was reset while the page was loading"


DynamicWeb support was no help, all they write are:
"This is not at general bug in variants. Fault properly in template. We do not support or debug template in support."

Does this mean that VariantCombinations can't be added to available loops? If not how do you output VariantCombinations for BOMProducts?


Replies

 
Vladimir
Reply
This post has been marked as an answer
Hi Michael!
Sorry for later reply...
I researched the situation.
You are really doing everything right - this is a bug of DW.
 I registered this bug #6994 to fix it asap

Best regards,
Vladimir

Votes for this answer: 0
 
Michael Nielsen
Reply
Thanks Vladimir

I've used html templates as an alternative for now, which works just fine

 

You must be logged in to post in the forum