Lin, Jessica wrote:
I didn't use <xsl:apply-templates select="*"/> in my xslt file.
Well, there's a lot more you can do that mixes things up. I was just
giving a possible example.
I tried
to run the simplified xml and xslt files but I still got the same
result. Here are my simplied xml and xslt files. Could you please take a
look at them?
They contain invalid pieces and cannot be run. This is not allowed:
<xsl:template match="*:boot_object">
What were you trying to do? The '*' is not just a wildcard for a piece
of a qname, it is a node selector.
If you wanted to match all namespaces, then this is not the right
syntax. Instead use a suffix from your xslt root element, or set the
xpath-default-namespace in either the root or in the xsl:template
element. To match any namespace, there are other ways.
If your processor somehow allowed this syntax, then this is the moment
to reveal what processor you are using and what version and with what
parameters you call your processor. I modified your sample to match the
boot-object etc, and when run with Saxon 8.8, it clearly shows the 'xsi'
prefix on the schemaLocation. Here's my output.
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://directv.com/bitstreams/blueprint"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://directv.com/bitstreams/blueprint
..\xsd\Blueprint.xsd"
base_time="2004-11-05T12:00:00"
duration_seconds="12"
tail_seconds=".25"
version="1.00">
<apg>
<boot_object key="bo1">
<advanced_boot_object_header>
<object_type>153</object_type>
<object_version>0</object_version>
<reserved>65535</reserved>
<time_first_referenced>compute</time_first_referenced>
<object_id>1</object_id>
</advanced_boot_object_header>
<boot_object_body>
<root_category_system_object_id ref="cso1"/>
<secondary_boot_cycle_time>4</secondary_boot_cycle_time>
<secondary_boot_SCID>2049</secondary_boot_SCID>
<reserved1>255</reserved1>
<reserved2>15</reserved2>
</boot_object_body>
</boot_object>
</apg>
</blueprint>
Cheers
-- Abel Braaksma
http://www.nuntia.com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--