Bugs item #547130, was opened at 2002-04-22 08:36 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=116035&aid=547130&group_id=16035
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: xslt in dom4j Initial Comment: i have a problem with using xsl transformation in dom4j. 1. it looks like dom4j understands only xmlns:xsl="http://www.w3.org/1999/XSL/Transform" namespace and ignores others. 2. if a node has more than 4 attributes, i can not display it. here is xml source: <Set language="en" date="Mon Apr 15 16:18:30 PDT 2002" pc="shell" ip="192.168.1.100" connection="family" cn_type="odbc"> <Types/> <Data> <Procedures> <Procedure name="get_contact" generate="false"> <arg argName="p_person_id" argLength="4" argType="int" argNullable="true" argOut="false"/> <arg argName="test" argLength="4" argType="int" argNullable="true" argOut="true"/> </Procedure> <Procedure name="get_contactest"/> <Procedure name="get_contactint" generate="true"> <arg argName="testX" argLength="4" argType="int" argNullable="true" argOut="true"/> </Procedure> <Procedure name="get_contacts" generate="true"/> <Procedure name="get_people"/> </Procedures> </Data> </Set> now try to get connection attribute from root Set node: connection=<xs:value-of select="Set/@connection"/> fails, but ip=<xs:value-of select="Set/@ip"/> is ok try to loop through Procedures - to do so you have to use "http://www.w3.org/TR/WD-xsl" name space, but dom4j does not like it. xsl sample source: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/TR/WD-xsl"> <xsl:output method="html"/> <xsl:template match="/"> <html> <body> <xsl:apply-templates/> </body> </html> </xsl:template> <xsl:template match="/"> <xs:for-each select="//Procedure"> <xs:value-of select="@name"/> </xs:for-each> </xsl:template> </xsl:stylesheet> ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=116035&aid=547130&group_id=16035 _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev