Subject: Re: [xsl] can you select name() of attributes? From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx> Date: Tue, 27 Jul 2004 11:01:16 +0000 |
Doc1.xml <Input> <I q="input value" s="Invalid attribute">Input</I> </Input>
Doc2.xml <A> <B q="default" r="default">Text1</B> </A>
Desired output: <Output q="input value" r="default">Some text in the output element</Output>
Output that I get: <Output q="default" r="default">Some text in the output element</Output>
XSL snippets (for the non-desired output): <!-- Global variables --> <xsl:variable name="Doc1" select="document('Doc1.xml')/Input/I"/> <xsl:variable name="Doc2" select="document('Doc2.xml')/A/B"/>
<!-- Template for processing --> <xsl:template name="MakeOutput"> <xsl:variable name="Attr1" select="$Doc1/@*"/> <xsl:variable name="Attr2" select="$Doc2/@*"/>
Regards, Ragulf Pickaxe :-)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] can you select name() of , David Carlisle | Thread | Re: [xsl] can you select name() of , M. David Peterson |
Re: [xsl] can you select name() of , David Carlisle | Date | Re: [xsl] XSL resources - Flat to h, M. David Peterson |
Month |