XML to XML transformations

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LSullam
    New Member
    • Aug 2008
    • 1

    XML to XML transformations

    Hi,
    I'm trying to use XSLT to transform the XML source code output from C# to DocBook XML. My specific question (besides the million others I have) is how to you change a <see cref=' ' > to <link linkend=' '></link>. Any help you be greatly greatly appreciated!

    Lillian
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    Assuming you're using templates:
    [code=xml]
    <xsl:template match="see">
    <link linkend="{@cref }">
    </link>
    </xsl:template>
    [/code]

    Comment

    Working...