[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]

Subject: Re: [Fwd: Re: Re: Using a variable in XSLT]
From: Tim Müller-Seydlitz <tms@xxxxxxxxxxxxxxxxxx>
Date: Fri, 05 Sep 2003 14:53:37 +0200
m ller seydlitz
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.