[xslt] simpler testcase



A simpler testcase. Again I produced two different results in the 
browser by forking manually from the trace.

SOURCE FILES

form.html
=========================
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="test1.xsl" ?>
<?xml-stylesheet type="text/xsl" href="test2.xsl" ?>
<grammar>
   <start>
     <element name="resume">
       <optional>
         <attribute name="id">
           <data type="ID" />
         </attribute>
       </optional>
     </element>
   </start>
</grammar>

index.html
=========================
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="test2.xsl" ?>
<dummy xmlns:dyn="http://exslt.org/dynamic";><rngform 
xmlns="http://simonwoodside.com/rng";><title>RNG 
Form</title></rngform></dummy>

TRACE FILES

::::::::::::::
_2fexp_2fform.html.0
::::::::::::::
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="test1.xsl" ?>
<?xml-stylesheet type="text/xsl" href="test2.xsl" ?>
<grammar>
   <start>
     <element name="resume">
       <optional>
         <attribute name="id">
           <data type="ID" />
         </attribute>
       </optional>
     </element>
   </start>
</grammar>
::::::::::::::
_2fexp_2fform.html.1
::::::::::::::
<?xml version="1.0"?>
<dummy xmlns:dyn="http://exslt.org/dynamic";><rngform 
xmlns="http://simonwoodside.com/rng";><title>RNG Form</title></rngf
orm></dummy>
::::::::::::::
_2fexp_2fform.html.2
::::::::::::::
<?xml version="1.0" standalone="yes"?>
<html xmlns:mid="http://simonwoodside.com/rng";><body>RNG 
Form</body></html>


DIFFERENCE

%%% diff _2fexp_2fform.html.1 ../index.html
1a2
 > <?xml-stylesheet type="text/xsl" href="test2.xsl" ?>
[simons-tibook:simonwoodside.com/exp/axtrace] woodside%


[[[[[
Now I open two files in my browser, form.html and index.html. They 
/should/ give the same results, as index.html is simply a copy of the 
second trace of form.html's processing, with the 2nd stylesheet added 
in a PI.
]]]]]

OUTPUT IN BROWSER

form.html
=========================
<html><body>RNG Form</body></html>

index.html
=========================
<html><body><h1>RNG Form</h1></body></html>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]