Subject: RE: [xsl] <xsl:if> From: AROSO Jose Antonio <jose.santos@xxxxxxxxxxx> Date: Fri, 8 Aug 2003 16:58:08 +0100 |
<!-- XSL FILE --> <?xml version="1.0" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html"/> <xsl:template match="ERwin4/Model"> <html> <head> </head> <body> <xsl:for-each select="Entity_Groups/Entity"> <p/> <xsl:text>TABLE: </xsl:text> <xsl:apply-templates select="@Name" /> <br/> <xsl:text>COMMENTS: </xsl:text> <xsl:value-of select="EntityProps/Comment" /> <p/> <table> <tr><th>NAME<th>TIPO<th>COMMENTS</th></th></th> </tr> <xsl:for-each select="Attribute_Groups/Attribute"> <tr> <td> <xsl:apply-templates select="@Name" /> </td> <td> <xsl:value-of select="AttributeProps/Type" /> </td> <td> <xsl:value-of select="AttributeProps/Definition" /> </td> </tr> </xsl:for-each> </table> <xsl:text>PRIMARY KEY: </xsl:text> <xsl:for-each select="Key_Group_Groups/Key_Group"> <xsl:if test="@Name='Primary Key'"> <xsl:for-each select="Key_Group_Member_Groups/Key_Group_Member/Key_Group_MemberProps"> <!--kid=id of the key corresponding to the id of the attribute which is key--> <xsl:variable name="kid" select="Key_Group_Member_Column" /> <!--aname=name of the attribute--> <xsl:variable name="aname" select="../../../../../Attribute_Groups/Attribute/@Name" /> <!--aid=id of the attribute--> <xsl:variable name="aid" select="../../../../../Attribute_Groups/Attribute/@id" /> <xsl:for-each select="$kid"> <xsl:if test="$aid=$kid"> <xsl:value-of select="$aname" /> <!-- The problem is here When there are two primary keys is only print the name of the first attribute. I can print for the first attribute key aname[1] for second aname[2] and so on, but i didnt do it--> </xsl:if> </xsl:for-each> <br/> </xsl:for-each> </xsl:if> </xsl:for-each> </xsl:for-each> </body> </html> </xsl:template> <xsl:template match="@Name"> <span style="color:#336699"> <xsl:value-of select="."/></span> <br/> </xsl:template> </xsl:stylesheet> Saving this file with erwin-xsl. <!--XML SOURCE FILE --> <?xml version="1.0" ?> <?xml-stylesheet type="text/xsl" href="erwin.xsl"?> <ERwin4 FileVersion="4100"> <Model id="{F0ADE654-968C-4165-A14D-21C2D5535DA8}+00000000" ModelType="3" TargetServer="174" DBMSVersion="8"> <ModelProps> <Name>MODELO2.XML</Name> <Type RO="Y">3</Type> <File_Name RO="Y">C:\XSL\modelo2.xml</File_Name> <Page_Grid>0</Page_Grid> <File_Format RO="Y">3228</File_Format> <Entity_Width>0</Entity_Width> <Entity_Height>0</Entity_Height> <Layout_Grid>0</Layout_Grid> <Layout_Grid_X>0</Layout_Grid_X> <Layout_Grid_Y>0</Layout_Grid_Y> <Font_Height>16</Font_Height> <Font_Width>6</Font_Width> <Unique_Names>0</Unique_Names> <Target_Server RO="Y">174</Target_Server> <Default_Datatype>CHAR(18)</Default_Datatype> <Non_Key_Null>0</Non_Key_Null> <Default_Fonts_and_Colors></Default_Fonts_and_Colors> <Repos>50</Repos> <DBMS_Version RO="Y">8</DBMS_Version> <Logical_Notation>0</Logical_Notation> <Old_Repos>50</Old_Repos> <Max_View_Expr_Display_Len>20</Max_View_Expr_Display_Len> <Physical_Notation>0</Physical_Notation> <Index_Name_Macro>X%KeyType%TableName</Index_Name_Macro> <Max_Def_Display_Len>40</Max_Def_Display_Len> <Table_Name_Macro>%EntityName()</Table_Name_Macro> <Current_Tool>true</Current_Tool> <MM_Preview>true</MM_Preview> <Saved_From_Previous_Version>false</Saved_From_Previous_Version> <Model_Background_Color>16777215</Model_Background_Color> </ModelProps> <Entity_Groups> <Entity id="{33CFB55B-08D9-4FAB-BCA7-D9FC72648957}+00000000" Name="clientes"> <EntityProps> <Name>clientes</Name> <Type>1</Type> <Index_Generate>1</Index_Generate> <Comment>Tabela de clientes</Comment> <Physical_Only>false</Physical_Only> </EntityProps> <Attribute_Groups> <Attribute id="{EA31251A-877D-4F23-ABCE-02A2431A08CE}+00000000" Name="id_cliente"> <AttributeProps> <Name>id_cliente</Name> <Type>0</Type> <Definition>Identificacao do cliente</Definition> <Datatype>NUMBER</Datatype> <Null_Option>1</Null_Option> <Order>1</Order> <Physical_Order>1</Physical_Order> <Parent_Domain>{39146A35-A713-4CAA-9FBF-9AA575FA9F44}+00000003</Parent_Domai n> <DO_Color_Inherited>0</DO_Color_Inherited> <DO_Font_Inherited>0</DO_Font_Inherited> </AttributeProps> </Attribute> <Attribute id="{794CB74F-7326-447A-9550-4BD758B14792}+00000000" Name="nome"> <AttributeProps> <Name>nome</Name> <Type>100</Type> <Null_Option>0</Null_Option> <Order>2</Order> <Physical_Order>2</Physical_Order> <Parent_Domain>{39146A35-A713-4CAA-9FBF-9AA575FA9F44}+00000002</Parent_Domai n> <DO_Color_Inherited>0</DO_Color_Inherited> <DO_Font_Inherited>0</DO_Font_Inherited> </AttributeProps> </Attribute> <Attribute id="{560CE765-4F67-4464-BB7E-C1276D89047D}+00000000" Name="morada"> <AttributeProps> <Name>morada</Name> <Type>100</Type> <Null_Option>0</Null_Option> <Order>3</Order> <Physical_Order>3</Physical_Order> <Parent_Domain>{39146A35-A713-4CAA-9FBF-9AA575FA9F44}+00000002</Parent_Domai n> <DO_Color_Inherited>0</DO_Color_Inherited> <DO_Font_Inherited>0</DO_Font_Inherited> </AttributeProps> </Attribute> </Attribute_Groups> <Key_Group_Groups> <Key_Group id="{351254A8-B340-4277-A13D-A115769B09CE}+00000000" Name="Primary Key"> <Key_GroupProps> <Key_Group_Type>PK</Key_Group_Type> <Index_Generate>1</Index_Generate> </Key_GroupProps> <Key_Group_Member_Groups> <Key_Group_Member id="{F47727FD-A6CB-4E02-9577-80CBD0374F3E}+00000000" Name="1"> <Key_Group_MemberProps> <Key_Group_Member_Column>{EA31251A-877D-4F23-ABCE-02A2431A08CE}+00000000</Ke y_Group_Member_Column> <Key_Group_Sort_Order>ASC</Key_Group_Sort_Order> <Key_Group_Position>1</Key_Group_Position> </Key_Group_MemberProps> </Key_Group_Member> </Key_Group_Member_Groups> </Key_Group> </Key_Group_Groups> </Entity> <Entity id="{3BF06454-D203-46E3-9B3D-9FF95D85F1F7}+00000000" Name="artigos"> <EntityProps> <Name>artigos</Name> <Type>1</Type> <Index_Generate>1</Index_Generate> </EntityProps> <Attribute_Groups> <Attribute id="{0D07B263-A951-4374-82D8-8578EDF1C538}+00000000" Name="id_artigo"> <AttributeProps> <Name>id_artigo</Name> <Type>0</Type> <Datatype>NUMBER</Datatype> <Null_Option>1</Null_Option> <Order>1</Order> <Physical_Order>1</Physical_Order> <Parent_Domain>{39146A35-A713-4CAA-9FBF-9AA575FA9F44}+00000003</Parent_Domai n> <DO_Color_Inherited>0</DO_Color_Inherited> <DO_Font_Inherited>0</DO_Font_Inherited> </AttributeProps> </Attribute> <Attribute id="{253CCBDC-3F69-422D-84E1-1C8EC7DCA108}+00000000" Name="descricao"> <AttributeProps> <Name>descricao</Name> <Type>0</Type> <Null_Option>1</Null_Option> <Order>2</Order> <Physical_Order>3</Physical_Order> <Parent_Domain>{39146A35-A713-4CAA-9FBF-9AA575FA9F44}+00000002</Parent_Domai n> <DO_Color_Inherited>0</DO_Color_Inherited> <DO_Font_Inherited>0</DO_Font_Inherited> </AttributeProps> </Attribute> <Attribute id="{E1350B8B-371D-4C97-B89C-714A5EEFD886}+00000000" Name="id_cliente"> <AttributeProps> <Name>id_cliente</Name> <Type>100</Type> <Definition>Identificacao do cliente</Definition> <Datatype>NUMBER</Datatype> <Null_Option>0</Null_Option> <Order>3</Order> <Physical_Order>2</Physical_Order> <Parent_Attribute>{EA31251A-877D-4F23-ABCE-02A2431A08CE}+00000000</Parent_At tribute> <Parent_Relationship>{D7967793-AA47-4BD8-88EB-561CC30C1003}+00000000</Parent _Relationship> <Parent_Domain>{39146A35-A713-4CAA-9FBF-9AA575FA9F44}+00000003</Parent_Domai n> <Hide_in_Logical>false</Hide_in_Logical> <Hide_in_Physical>false</Hide_in_Physical> <DO_Font_Color>0</DO_Font_Color> <Master_Attribute RO="Y">{EA31251A-877D-4F23-ABCE-02A2431A08CE}+00000000</Master_Attribute> <DO_Color_Inherited>-1</DO_Color_Inherited> <DO_Font_Inherited>-1</DO_Font_Inherited> </AttributeProps> </Attribute> </Attribute_Groups> <Key_Group_Groups> <Key_Group id="{DD2D981A-AA4F-42CB-AD66-9F6E418610E6}+00000000" Name="Primary Key"> <Key_GroupProps> <Key_Group_Type>PK</Key_Group_Type> <Index_Generate>1</Index_Generate> </Key_GroupProps> <Key_Group_Member_Groups> <Key_Group_Member id="{0EDFB797-AB32-42DF-A9DE-0E73BC25BE1B}+00000000" Name="1"> <Key_Group_MemberProps> <Key_Group_Member_Column>{0D07B263-A951-4374-82D8-8578EDF1C538}+00000000</Ke y_Group_Member_Column> <Key_Group_Sort_Order>ASC</Key_Group_Sort_Order> <Key_Group_Position>1</Key_Group_Position> </Key_Group_MemberProps> </Key_Group_Member> <Key_Group_Member id="{FC9A0684-0DDA-48B3-A719-2235CE63E438}+00000000" Name="2"> <Key_Group_MemberProps> <Key_Group_Member_Column>{253CCBDC-3F69-422D-84E1-1C8EC7DCA108}+00000000</Ke y_Group_Member_Column> <Key_Group_Sort_Order>ASC</Key_Group_Sort_Order> <Key_Group_Position>2</Key_Group_Position> </Key_Group_MemberProps> </Key_Group_Member> </Key_Group_Member_Groups> </Key_Group> <Key_Group id="{47AFBD75-A596-4313-B7BE-F3F5F564B831}+00000000" Name="Foreign Key1"> <Key_GroupProps> <Key_Group_Type>IF1</Key_Group_Type> <Index_Generate>1</Index_Generate> <Key_Group_Relationship_Pointer>{D7967793-AA47-4BD8-88EB-561CC30C1003}+00000 000</Key_Group_Relationship_Pointer> </Key_GroupProps> <Key_Group_Member_Groups> <Key_Group_Member id="{056C0BEE-DCDD-4E87-8F92-CDE7BE024985}+00000000" Name="1"> <Key_Group_MemberProps> <Key_Group_Member_Column>{E1350B8B-371D-4C97-B89C-714A5EEFD886}+00000000</Ke y_Group_Member_Column> <Key_Group_Sort_Order>ASC</Key_Group_Sort_Order> <Key_Group_Position>1</Key_Group_Position> </Key_Group_MemberProps> </Key_Group_Member> </Key_Group_Member_Groups> </Key_Group> </Key_Group_Groups> </Entity> <Entity id="{4AF3AAA9-499A-4D6E-88DD-BA8380101632}+00000000" Name="linhas_Factura"> <EntityProps> <Name>linhas_Factura</Name> <Type>1</Type> <Index_Generate>1</Index_Generate> </EntityProps> <Attribute_Groups> <Attribute id="{63AE341F-D09A-46F0-BA9B-8D7B09A66D71}+00000000" Name="linhaId"> <AttributeProps> <Name>linhaId</Name> <Type>0</Type> <Datatype>NUMBER</Datatype> <Null_Option>1</Null_Option> <Order>1</Order> <Physical_Order>1</Physical_Order> <Parent_Domain>{39146A35-A713-4CAA-9FBF-9AA575FA9F44}+00000001</Parent_Domai n> <DO_Color_Inherited>0</DO_Color_Inherited> <DO_Font_Inherited>0</DO_Font_Inherited> </AttributeProps> </Attribute> <Attribute id="{DB06B249-5733-4DC1-92B1-DD3DA80ABE29}+00000000" Name="factId"> <AttributeProps> <Name>factId</Name> <Type>100</Type> <Datatype>NUMBER</Datatype> <Null_Option>0</Null_Option> <Order>2</Order> <Physical_Order>2</Physical_Order> <Parent_Domain>{39146A35-A713-4CAA-9FBF-9AA575FA9F44}+00000001</Parent_Domai n> <DO_Color_Inherited>0</DO_Color_Inherited> <DO_Font_Inherited>0</DO_Font_Inherited> </AttributeProps> </Attribute> <Attribute id="{08323CF6-4809-4E8C-ABCF-930A5F584CF6}+00000000" Name="id_artigo"> <AttributeProps> <Name>id_artigo</Name> <Type>100</Type> <Datatype>NUMBER</Datatype> <Null_Option>0</Null_Option> <Order>3</Order> <Physical_Order>3</Physical_Order> <Parent_Attribute>{0D07B263-A951-4374-82D8-8578EDF1C538}+00000000</Parent_At tribute> <Parent_Relationship>{88094EBC-EFD2-4576-B735-9D758627DDA7}+00000000</Parent _Relationship> <Parent_Domain>{39146A35-A713-4CAA-9FBF-9AA575FA9F44}+00000001</Parent_Domai n> <Hide_in_Logical>false</Hide_in_Logical> <Hide_in_Physical>false</Hide_in_Physical> <DO_Font_Color>0</DO_Font_Color> <Master_Attribute RO="Y">{0D07B263-A951-4374-82D8-8578EDF1C538}+00000000</Master_Attribute> <DO_Color_Inherited>-1</DO_Color_Inherited> <DO_Font_Inherited>-1</DO_Font_Inherited> </AttributeProps> </Attribute> <Attribute id="{A20C4702-5957-49C8-9A60-3A99F88671A1}+00000000" Name="preco"> <AttributeProps> <Name>preco</Name> <Type>100</Type> <Datatype>FLOAT</Datatype> <Null_Option>0</Null_Option> <Order>4</Order> <Physical_Order>4</Physical_Order> <Parent_Domain>{39146A35-A713-4CAA-9FBF-9AA575FA9F44}+00000001</Parent_Domai n> <DO_Color_Inherited>0</DO_Color_Inherited> <DO_Font_Inherited>0</DO_Font_Inherited> </AttributeProps> </Attribute> <Attribute id="{61E68EF0-4353-4153-B6C8-4B9B5759CD4B}+00000000" Name="qtd"> <AttributeProps> <Name>qtd</Name> <Type>100</Type> <Datatype>NUMBER</Datatype> <Null_Option>0</Null_Option> <Order>5</Order> <Physical_Order>5</Physical_Order> <Parent_Domain>{39146A35-A713-4CAA-9FBF-9AA575FA9F44}+00000001</Parent_Domai n> <DO_Color_Inherited>0</DO_Color_Inherited> <DO_Font_Inherited>0</DO_Font_Inherited> </AttributeProps> </Attribute> <Attribute id="{0A92C3B8-7075-4F19-BBEA-D5A75BF08872}+00000000" Name="descricao"> <AttributeProps> <Name>descricao</Name> <Type>100</Type> <Order>6</Order> <Physical_Order>6</Physical_Order> <Parent_Attribute>{253CCBDC-3F69-422D-84E1-1C8EC7DCA108}+00000000</Parent_At tribute> <Parent_Relationship>{88094EBC-EFD2-4576-B735-9D758627DDA7}+00000000</Parent _Relationship> <Parent_Domain>{39146A35-A713-4CAA-9FBF-9AA575FA9F44}+00000002</Parent_Domai n> <Hide_in_Logical>false</Hide_in_Logical> <Hide_in_Physical>false</Hide_in_Physical> <DO_Font_Color>0</DO_Font_Color> <Master_Attribute RO="Y">{253CCBDC-3F69-422D-84E1-1C8EC7DCA108}+00000000</Master_Attribute> <DO_Color_Inherited>-1</DO_Color_Inherited> <DO_Font_Inherited>-1</DO_Font_Inherited> </AttributeProps> </Attribute> </Attribute_Groups> <Key_Group_Groups> <Key_Group id="{D08BC66E-7CF2-41BA-9209-EEB09B61EF8F}+00000000" Name="Primary Key"> <Key_GroupProps> <Key_Group_Type>PK</Key_Group_Type> <Index_Generate>1</Index_Generate> </Key_GroupProps> <Key_Group_Member_Groups> <Key_Group_Member id="{66651F5C-4BE1-42D4-B2BB-7AE1B5FB0089}+00000000" Name="1"> <Key_Group_MemberProps> <Key_Group_Member_Column>{63AE341F-D09A-46F0-BA9B-8D7B09A66D71}+00000000</Ke y_Group_Member_Column> <Key_Group_Sort_Order>ASC</Key_Group_Sort_Order> <Key_Group_Position>1</Key_Group_Position> </Key_Group_MemberProps> </Key_Group_Member> </Key_Group_Member_Groups> </Key_Group> <Key_Group id="{5E74B783-CF02-478E-803B-627C6B51C3B4}+00000000" Name="Foreign Key1"> <Key_GroupProps> <Key_Group_Type>IF1</Key_Group_Type> <Index_Generate>1</Index_Generate> <Key_Group_Relationship_Pointer>{88094EBC-EFD2-4576-B735-9D758627DDA7}+00000 000</Key_Group_Relationship_Pointer> </Key_GroupProps> <Key_Group_Member_Groups> <Key_Group_Member id="{0E9546A0-9FAC-4503-9DD1-5622AFDB1257}+00000000" Name="1"> <Key_Group_MemberProps> <Key_Group_Member_Column>{08323CF6-4809-4E8C-ABCF-930A5F584CF6}+00000000</Ke y_Group_Member_Column> <Key_Group_Sort_Order>ASC</Key_Group_Sort_Order> <Key_Group_Position>1</Key_Group_Position> </Key_Group_MemberProps> </Key_Group_Member> <Key_Group_Member id="{E9F822CF-CF4B-4952-A511-ED459FE9E819}+00000000" Name="2"> <Key_Group_MemberProps> <Key_Group_Member_Column>{0A92C3B8-7075-4F19-BBEA-D5A75BF08872}+00000000</Ke y_Group_Member_Column> <Key_Group_Sort_Order>ASC</Key_Group_Sort_Order> <Key_Group_Position>2</Key_Group_Position> </Key_Group_MemberProps> </Key_Group_Member> </Key_Group_Member_Groups> </Key_Group> </Key_Group_Groups> </Entity> </Entity_Groups> </Model> </ERwin4> Please testing this code . How can i resolve the problem comment in this line. <xsl:value-of select="$aname" /> Best Regards Jose -----Original Message----- From: Michael Kay [mailto:mhk@xxxxxxxxx] Sent: sexta-feira, 8 de Agosto de 2003 15:27 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] <xsl:if> As far as I can see, each Key_Group_MemberProps contains only one Key_Group_Member_Column, therefore the variable $kid will contain exactly one node, therefore the comparison with $kid[2] will always return false. Now what really puzzles me is, what did you find this so difficult to debug? Even if you couldn't see what was going on by inspecting the code, surely some very simple tracing using xsl:message would have given you the answer? Michael Kay > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > AROSO Jose Antonio > Sent: 08 August 2003 12:02 > To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' > Subject: RE: [xsl] <xsl:if> > > > </Entity> > - <Entity id="{3BF06454-D203-46E3-9B3D-9FF95D85F1F7}+00000000" > Name="artigos"> > - <EntityProps> > <Name>artigos</Name> > <Type>1</Type> > <Index_Generate>1</Index_Generate> > </EntityProps> > - <Attribute_Groups> > - <Attribute id="{0D07B263-A951-4374-82D8-8578EDF1C538}+00000000" > Name="id_artigo"> > - <AttributeProps> > <Name>id_artigo</Name> > <Type>0</Type> > <Datatype>NUMBER</Datatype> > <Null_Option>1</Null_Option> > <Order>1</Order> > <Physical_Order>1</Physical_Order> > > <Parent_Domain>{39146A35-A713-4CAA-9FBF-9AA575FA9F44}+00000003 > </Parent_Domai > n> > <DO_Color_Inherited>0</DO_Color_Inherited> > <DO_Font_Inherited>0</DO_Font_Inherited> > </AttributeProps> > + <History_Information_Groups> > - <History_Information > id="{299075E8-63D8-4B0A-977C-C43CE6900382}+00000000" > Name=""> > - <History_InformationProps> > <Type>1</Type> > <Created_Time>1049381783</Created_Time> > <Default_Object_Alternative_Id > RO="Y">0</Default_Object_Alternative_Id> > </History_InformationProps> > </History_Information> > </History_Information_Groups> > </Attribute> > - <Attribute id="{253CCBDC-3F69-422D-84E1-1C8EC7DCA108}+00000000" > Name="descricao"> > - <AttributeProps> > <Name>descricao</Name> > <Type>0</Type> > <Null_Option>1</Null_Option> > <Order>2</Order> > <Physical_Order>3</Physical_Order> > > <Parent_Domain>{39146A35-A713-4CAA-9FBF-9AA575FA9F44}+00000002 > </Parent_Domai > n> > <DO_Color_Inherited>0</DO_Color_Inherited> > <DO_Font_Inherited>0</DO_Font_Inherited> > </AttributeProps> > + <History_Information_Groups> > - <History_Information > id="{B0C2C207-7CF6-43E5-9886-05F9BB0A68BB}+00000000" > Name=""> > - <History_InformationProps> > <Type>1</Type> > <Created_Time>1049381783</Created_Time> > <Default_Object_Alternative_Id > RO="Y">0</Default_Object_Alternative_Id> > </History_InformationProps> > </History_Information> > </History_Information_Groups> > </Attribute> > - <Attribute id="{E1350B8B-371D-4C97-B89C-714A5EEFD886}+00000000" > Name="id_cliente"> > - <AttributeProps> > <Name>id_cliente</Name> > <Type>100</Type> > <Definition>Identificação do cliente</Definition> > <Datatype>NUMBER</Datatype> > <Null_Option>0</Null_Option> > <Order>3</Order> > <Physical_Order>2</Physical_Order> > > <Parent_Attribute>{EA31251A-877D-4F23-ABCE-02A2431A08CE}+00000 > 000</Parent_At > tribute> > > <Parent_Relationship>{D7967793-AA47-4BD8-88EB-561CC30C1003}+00 > 000000</Parent > _Relationship> > > <Parent_Domain>{39146A35-A713-4CAA-9FBF-9AA575FA9F44}+00000003 > </Parent_Domai > n> > <Hide_in_Logical>false</Hide_in_Logical> > <Hide_in_Physical>false</Hide_in_Physical> > <DO_Font_Color>0</DO_Font_Color> > <Master_Attribute > RO="Y">{EA31251A-877D-4F23-ABCE-02A2431A08CE}+00000000</Master > _Attribute> > <DO_Color_Inherited>-1</DO_Color_Inherited> > <DO_Font_Inherited>-1</DO_Font_Inherited> > </AttributeProps> > + <History_Information_Groups> > - <History_Information > id="{6B532EE6-4883-4605-82B9-F020711D1687}+00000000" > Name=""> > - <History_InformationProps> > <Type>1</Type> > <Created_Time>1049381783</Created_Time> > <Default_Object_Alternative_Id > RO="Y">0</Default_Object_Alternative_Id> > </History_InformationProps> > </History_Information> > </History_Information_Groups> > </Attribute> > </Attribute_Groups> > - <Key_Group_Groups> > - <Key_Group id="{DD2D981A-AA4F-42CB-AD66-9F6E418610E6}+00000000" > Name="Primary Key"> > - <Key_GroupProps> > <Key_Group_Type>PK</Key_Group_Type> > <Index_Generate>1</Index_Generate> > </Key_GroupProps> > - <Key_Group_Member_Groups> > - <Key_Group_Member > id="{0EDFB797-AB32-42DF-A9DE-0E73BC25BE1B}+00000000" > Name="1"> > - <Key_Group_MemberProps> > > <Key_Group_Member_Column>{0D07B263-A951-4374-82D8-8578EDF1C538 > }+00000000</Ke > y_Group_Member_Column> > <Key_Group_Sort_Order>ASC</Key_Group_Sort_Order> > <Key_Group_Position>1</Key_Group_Position> > </Key_Group_MemberProps> > </Key_Group_Member> > - <Key_Group_Member > id="{FC9A0684-0DDA-48B3-A719-2235CE63E438}+00000000" > Name="2"> > - <Key_Group_MemberProps> > > <Key_Group_Member_Column>{253CCBDC-3F69-422D-84E1-1C8EC7DCA108 > }+00000000</Ke > y_Group_Member_Column> > <Key_Group_Sort_Order>ASC</Key_Group_Sort_Order> > <Key_Group_Position>2</Key_Group_Position> > </Key_Group_MemberProps> > </Key_Group_Member> > </Key_Group_Member_Groups> > </Key_Group> > - <Key_Group id="{47AFBD75-A596-4313-B7BE-F3F5F564B831}+00000000" > Name="Foreign Key1"> > - <Key_GroupProps> > <Key_Group_Type>IF1</Key_Group_Type> > <Index_Generate>1</Index_Generate> > > <Key_Group_Relationship_Pointer>{D7967793-AA47-4BD8-88EB-561CC > 30C1003}+00000 > 000</Key_Group_Relationship_Pointer> > </Key_GroupProps> > - <Key_Group_Member_Groups> > - <Key_Group_Member > id="{056C0BEE-DCDD-4E87-8F92-CDE7BE024985}+00000000" > Name="1"> > - <Key_Group_MemberProps> > > <Key_Group_Member_Column>{E1350B8B-371D-4C97-B89C-714A5EEFD886 > }+00000000</Ke > y_Group_Member_Column> > <Key_Group_Sort_Order>ASC</Key_Group_Sort_Order> > <Key_Group_Position>1</Key_Group_Position> > </Key_Group_MemberProps> > </Key_Group_Member> > </Key_Group_Member_Groups> > </Key_Group> > </Key_Group_Groups> > > > -----Original Message----- > From: Michael Kay [mailto:mhk@xxxxxxxxx] > Sent: sexta-feira, 8 de Agosto de 2003 11:55 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: RE: [xsl] <xsl:if> > > > And your source document is? > > Michael Kay > > > -----Original Message----- > > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > > AROSO Jose Antonio > > Sent: 08 August 2003 10:01 > > To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' > > Subject: RE: [xsl] <xsl:if> > > > > > > <xsl:for-each > > select="Key_Group_Member_Groups/Key_Group_Member/Key_Group_Mem > > berProps"> > > <xsl:variable name="kid" > > select="Key_Group_Member_Column" /> > > > > <xsl:variable name="aname" > > select="../../../../../Attribute_Groups/Attribute/@Name" /> > > > > <xsl:variable name="aid" > > select="../../../../../Attribute_Groups/Attribute/@id" /> > > > > > > <xsl:value-of select="$kid[1]" /> > > > > <xsl:if test="$aid[1]=$kid[1]"> //this > > instruction compare very well > > > > > > <xsl:value-of select="$aname[1]" /><br/> > > <xsl:value-of select="$kid[2]" /> > > <xsl:value-of select="$aid[2]" /> > > > > <xsl:if test="$aid[2]=$kid[2]"> > > //this instruction > > dont compare very well > > ola > > </xsl:if> > > <br/> > > > > > > </xsl:if> > > > > > > > > </xsl:for-each> > > > > > > > > -----Original Message----- > > From: Michael Kay [mailto:mhk@xxxxxxxxx] > > Sent: quinta-feira, 7 de Agosto de 2003 21:54 > > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > Subject: RE: [xsl] <xsl:if> > > > > > > Show us your code and we will tell you where it is wrong. > > > > Michael Kay > > > > > -----Original Message----- > > > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > > > AROSO Jose Antonio > > > Sent: 07 August 2003 16:56 > > > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > > Subject: [xsl] <xsl:if> > > > > > > > > > Hi. > > > > > > I have two variables x1 e x2. > > > > > > When i compare the x1[1] with x2[1] the comparison is > correct. But > > > when i compare x1[2] with x2[2] the comparison is wrong. > However i > > > print the content of this two positions of the variables > and it is > > > equal. > > > > > > I dont know what is happen. > > > Anyone can help me? > > > > > > Best Regards > > > > > > Jose > > > > > > > > > > > > > > > > > > XSL-List info and archive: > > http://www.mulberrytech.com/xsl/xsl-list > > > > > > > > > XSL-List info > > and archive: http://www.mulberrytech.com/xsl/xsl-list > > > > XSL-List info and archive: > http://www.mulberrytech.com/xsl/xsl-list > > > > > XSL-List info > and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] <xsl:if>, Michael Kay | Thread | Re: [xsl] <xsl:if>, J.Pietschmann |
Re: AW: AW: [xsl] Using key() from , Markus Abt | Date | [xsl] pulling a document with a nul, Michael Clark |
Month |