|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: [Fwd: Re: Re: Using a variable in XSLT]
Feedback the way I did
Thanks for the insight I modified the proposed solution a little bit and got the result I expected <!-- This is to select docomentation in the selected. All documentation elements but those in the selected language are not in the result set. This choose a system. Only the selected sys is present in the output. --> <xsl:template match="xs:documentation">
<xsl:if test="*[lang('de')]" >
<xsl:element name="xs:documentation">
<xsl:copy-of select="@*"/>
<xsl:apply-templates select="*[name()=$SystemSelected]/text()"/>
</xsl:element>
</xsl:if>
</xsl:template>If I generate the xs:documentation elements directly with <xs:documentation> I get an empty namespace argument in the output like <xs:documentation xmlns=""> I don't know whether this is a bug in XML Spy or related to the namespaces I used in the header of the XSLT <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:sys="http://www.you-know-who.com/2003/systems" version="1.0"> Regards Tim XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








