The March
12-07-2005, 15:39
Ola!
sto creando una stringa xsl e mi sono trovato a dover usare il ciclo for-each..
Rispettando la sintassi letta da qualche sito e poi dall'msdn ho visto che le righe vengono riprodotte giustamente... solo che non vengono valorizzate :rolleyes:
in pratica mettendo i for-each i value-of smettono di funzionare :muro:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<GanttChartCollection>
<GanttChart GanttChartId="FirstView" Default="true">
<xsl:for-each select="ProductSegmentList/PDefM_PS">
<CustomRow RowPk="1"
ReadOnly="false" SpecialStyleColor="1234567">
<TaskName>
<xsl:value-of select="ProductSegmentList/PDefM_PS/PS"/>
</TaskName>
<Start>25/12/2005 10:00:00</Start>
<Finish>25/12/2005 19:00:00</Finish>
</CustomRow>
</xsl:for-each>
</GanttChart>
</GanttChartCollection>
</xsl:template>
</xsl:stylesheet>
sto creando una stringa xsl e mi sono trovato a dover usare il ciclo for-each..
Rispettando la sintassi letta da qualche sito e poi dall'msdn ho visto che le righe vengono riprodotte giustamente... solo che non vengono valorizzate :rolleyes:
in pratica mettendo i for-each i value-of smettono di funzionare :muro:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<GanttChartCollection>
<GanttChart GanttChartId="FirstView" Default="true">
<xsl:for-each select="ProductSegmentList/PDefM_PS">
<CustomRow RowPk="1"
ReadOnly="false" SpecialStyleColor="1234567">
<TaskName>
<xsl:value-of select="ProductSegmentList/PDefM_PS/PS"/>
</TaskName>
<Start>25/12/2005 10:00:00</Start>
<Finish>25/12/2005 19:00:00</Finish>
</CustomRow>
</xsl:for-each>
</GanttChart>
</GanttChartCollection>
</xsl:template>
</xsl:stylesheet>