[oXygen-user] XSLT coping xsi:schemaLocation?
Thu Aug 9 10:10:39 CDT 2007
Thanks for the quick response!
Unfortunately, your example works except for the XInclude included
content. When the element is added to the output document, it has an
and I'm not completely sure where it came from. In my 'master' document
the include line is:
so it seems the href is carried through to the xml:base attribte.
How can I suppress this?
> Hi Thimothy,
> There is nothing special about the xsi:schemaLocation attribute in XSLT.
> You can copy that to the output as you copy any other attribute. For
> instance the following stylesheet that contains only the recursive copy
> template applied on itself passes through the xsi:schemaLocation
> attribute defined on the stylesheet element:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xsi:schemaLocation="http://www.w3.org/1999/XSL/Transform xslt.xsd">
> <xsl:template match="node() | @*">
> <xsl:apply-templates select="node() | @*"/>
> Best Regards,
> George Cristian Bina - http://aboutxml.blogspot.com/
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> Timothy Reaves wrote:
>> O.K., I think I'm down to the last issue. When I run my transform,
>> my root elements xsi:schemaLocation attribute is not copied over
>> however. As I need to process the root elements children, I have to
>> use copy.
>> I tried using the same technique I use for other attributes, but I
>> can't specify an attribute name with xsi: in the name.
>> Anyone know how to get the location to copy over? I still need it
>> place to validate the transformed element. I'd even settle for being
>> able to hard-code the value in the XSL file.
>> oXygen-user mailing list
More information about the oXygen-user