[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: missing xsi: before schemaLocation in the result x
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 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>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|