From: Oleg T. <he...@us...> - 2005-12-04 15:33:32
|
Update of /cvsroot/mvp-xml/nxslt/v2/test/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12347/v2/test/tests Added Files: disclaimer.xml document.xml foo.dtd foo.xsd out.xml second.xml source.xml source1.xml style.xslt style2.xslt style3.xslt style4.xslt Log Message: --- NEW FILE: foo.dtd --- <!ELEMENT foo (bar)> <!ENTITY bar "hello there"> --- NEW FILE: style.xslt --- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:date="http://exslt.org/dates-and-times" xmlns:exsl="http://exslt.org/common"> <xsl:output encoding="iso-8859-1"/> <xsl:template match="/"> <out> <xsl:value-of select="date:date-time()"/> <xsl:copy-of select="/"/> <exsl:document href="second.xml" encoding="ascii"> <second>document</second> </exsl:document> </out> </xsl:template> </xsl:stylesheet> --- NEW FILE: style2.xslt --- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:date="http://exslt.org/dates-and-times" xmlns:exsl="http://exslt.org/common"> <xsl:output encoding="iso-8859-1"/> <xsl:template match="/"> <out> <xsl:value-of select="date:date-time()"/> <xsl:copy-of select="document('cache://ext.xml')"/> </out> </xsl:template> </xsl:stylesheet> --- NEW FILE: style3.xslt --- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:ext="foo"> <xsl:output encoding="iso-8859-1"/> <xsl:template match="/"> <out> <xsl:value-of select="ext:Add(2,3)"/> </out> </xsl:template> </xsl:stylesheet> --- NEW FILE: disclaimer.xml --- <?xml version='1.0'?> <!-- comment --> <?pi foo ?> <disclaimer> <p>The opinions represented herein represent those of the individual and should not be interpreted as official policy endorsed by this organization.</p> </disclaimer> --- NEW FILE: out.xml --- <?xml version="1.0" encoding="iso-8859-1"?><out xmlns:date="http://exslt.org/dates-and-times" xmlns:exsl="http://exslt.org/common">2005-12-04T17:18:47+02:00<out>2005-12-04T17:18:46+02:00<?xml-stylesheet type="text/xsl" href="style.xslt"?><foo> <bar>hello there</bar> </foo><exsl:document href="second.xml" encoding="ascii"><second>document</second></exsl:document></out><exsl:document href="second.xml" encoding="ascii"><second>document</second></exsl:document></out> --- NEW FILE: style4.xslt --- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output encoding="iso-8859-1"/> <xsl:template match="/"> <out> <document xmlns:xi="http://www.w3.org/2003/XInclude"> <p>120 Mz is adequate for an average home user.</p> <xi:include href="disclaimer.xml" parse="xml"><foo></foo></xi:include> foo </document> </out> </xsl:template> </xsl:stylesheet> --- NEW FILE: document.xml --- <?xml version="1.0"?> <document xmlns:xi="http://www.w3.org/2003/XInclude"> <p>120 Mz is adequate for an average home user.</p> <xi:include href="disclaimer.xml" parse="xml"><foo></foo></xi:include> foo </document> --- NEW FILE: source1.xml --- <foo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="foo.xsd"> <bar>hello</bar> </foo> --- NEW FILE: second.xml --- <?xml version="1.0" encoding="us-ascii"?><second>document</second> --- NEW FILE: source.xml --- <?xml-stylesheet type="text/xsl" href="style.xslt"?> <!DOCTYPE foo SYSTEM "foo.dtd"> <foo> <bar>&bar;</bar> </foo> --- NEW FILE: foo.xsd --- <?xml version="1.0" encoding="utf-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="foo"> <xs:complexType> <xs:sequence> <xs:element name="bar" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> |