|
Hi Betty/Derek, Thanks for getting back. Yes, that's certainly helped. I'm now confident that my variable also contains the tags in addition to the values. It was by changing the "." for "@* | node()" that did it. So my xslt looks like this: <xsl:variable name="gml">
<xsl:copy-of select="@* | node()"/>
</xsl:variable>
However, I now believe this variable is still a Node-Tree, and not a
String. I need it to be the latter so I can pass the XML excerpt to
the Java method I mentioned earlier (using xalan to do so).Is there a way of casting/translating a node tree into a String? Best regards, Andy Derek Hohls wrote: --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]And that is not a "trick", but standard XSLT; see: http://www.dpawson.co.uk/xsl/sect2/N1930.html#d3389e91 as select="." only selects the value (string) inside the tag/s.On 2008/06/27 at 06:48, in message <[EMAIL PROTECTED]>, "Betty Harvey" <[EMAIL PROTECTED]> wrote:Try this for your xsl:copy: <xsl:copy><xsl:apply-templates select="@* | node()" /></xsl:copy> <quote who="Andrew Chamberlain"> |
- Tags in the value of an XSLT variable? Andrew Chamberlain
- Re: Tags in the value of an XSLT variable? Betty Harvey
- Re: Tags in the value of an XSLT variable? Derek Hohls
- Re: Tags in the value of an XSLT variable? Andrew Chamberlain
- Re: Tags in the value of an XSLT varia... Derek Hohls
- Re: Tags in the value of an XSLT varia... Andreas Hartmann
- Re: Tags in the value of an XSLT ... Andrew Chamberlain
- Passing a node-set from XSLT to J... Andrew Chamberlain
- Re: Passing a node-set from X... Luca Morandini
- Re: Passing a node-set fr... Andrew Chamberlain
- Re: Passing a node-set fr... Andrew Chamberlain
- Re: Passing a node-set fr... Jason Johnston
- Re: Passing a node-set fr... Andrew Chamberlain
- Re: Passing a node-set fr... Derek Hohls
