[Home] [By Thread] [By Date] [Recent Entries]
At 2009-09-26 01:13 +1200, Trevor Nicholls wrote:
The namespace declaration above has no effect ... namespace declarations in the stylesheet will only add namespace nodes to literal result elements. <xsl:attribute name="xsi:noNamespaceSchemaLocation">../../xml_utils/hcdocs.xsd</xsl:attribu te> Above you are creating an attribute node out of thin air, but you aren't indicating in what namespace the "xsi:" prefix is in. I would have expected the processor to have given you an error on this. You should have added this to the <xsl:attribute> instruction: namespace="http://www.w3.org/2001/XMLSchema-instance" This tells the processor what you want the prefix of the attribute in the result tree to be bound to. I hope this helps. . . . . . . . . . . . . Ken -- Upcoming hands-on code list, UBL, XSLT, XQuery and XSL-FO classes. Interested in other classes? http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|

Cart



