ViewEditor1.xsl revision 779:2b61bfcaa586
1<?xml version="1.0"?> 2<xsl:stylesheet version="2.0" xmlns:Iteration="http://www.iterationsoftware.com" 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xalan" 4 xmlns:HTML="http://www.w3.org/Profiles/XHTML-transitional" xmlns:v="urn:schemas-microsoft-com:vml" 5 xmlns:local="#local-functions"> 6 7 <xsl:output method="xml" encoding="UTF-8" cdata-section-elements="CalcExpression Value"/> 8 9 <xsl:variable name="TabRowHeight">21</xsl:variable> 10 11 <xsl:variable name="DataEditor"> 12 <xsl:call-template name="DataEditor"/> 13 </xsl:variable> 14 15 <xsl:variable name="view_type"> 16 <xsl:value-of select="//ViewEditor/@ViewType"/> 17 </xsl:variable> 18 19 <xsl:variable name="InitialTabEvent"> 20 <xsl:value-of select="//ViewEditor/@Page"/> 21 </xsl:variable> 22 23 <xsl:template match="Iteration"> 24 <id> 25 <xsl:value-of 26 select="xalan:nodeset($DataEditor)/DataEditor/View[ContentType=$view_type]/Page[Event=$InitialTabEvent]/@id"/> 27 </id> 28 </xsl:template> 29 30 <xsl:template name="DataEditor"> 31 <DataEditor> 32 <View> 33 <ContentType>PieChart</ContentType> 34 <ContentType>ThreeDPieChart</ContentType> 35 <Page id="DATA_OBJECTS"> 36 <xsl:attribute name="label"> 37 <xsl:value-of select="//Translated/String[@name='DATA_OBJECTS']"/> 38 </xsl:attribute> 39 <Event>datasets</Event> 40 </Page> 41 <Page id="VIEWEDITOR_TAB_FIELDS"> 42 <xsl:attribute name="label"> 43 <xsl:value-of select="//Translated/String[@name='VIEWEDITOR_TAB_FIELDS']"/> 44 </xsl:attribute> 45 <Event>chartFields</Event> 46 </Page> 47 </View> 48 </DataEditor> 49 </xsl:template> 50</xsl:stylesheet> 51