Template Match and document

Posted by Christophe Debove on Stack Overflow See other posts from Stack Overflow or by Christophe Debove
Published on 2011-01-05T13:40:54Z Indexed on 2011/01/05 14:54 UTC
Read the original article Hit count: 170

Filed under:
|

Can I do something like that to display the value of the node?

<!-- plop.xml : -->
<?xml version="1.0"?>
<root>
      <node1>hello</node1>
</root>

<xsl:template name="my_template" match="document('plop.xml')/root" >
       <xsl:value-of select="node1"/>
</xsl:template>

 <xsl:call-template name="my_template"></xsl:call-template>

I want to create special template that will only affect one xml.
I work on asp .net 2.0 C# XslCompiledTransform processor.

© Stack Overflow or respective owner

Related posts about Xml

Related posts about xslt