XSLT question
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: XSLT question

Threaded View

  1. #1
    Join Date
    Aug 2009
    Posts
    3

    XSLT question

    <?xml version="1.0" encoding="UTF-8"?>
    <OMDefault xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <PrintDollarsAndCents>X</PrintDollarsAndCents>
    <MailAddrLine1>Add1</MailAddrLine1>
    <MailAddrLine2>Add2</MailAddrLine2>
    </OMDefault>

    I would like to have an XSLT to transform the XML to this

    <?xml version="1.0" encoding="UTF-8"?>
    <OMDefault xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <PrintDollarsAndCents>Y</PrintDollarsAndCents>
    <MailAddrLine1>Add1</MailAddrLine1>
    <MailAddrLine2>Add2</MailAddrLine2>
    </OMDefault>

    Please notice the 'X' gets transformed to 'Y' if the attribute is PrintDollarsAndCents and its value is 'X' Could someone please help me with this? As I am very new to this XSLT thing.

    Thank you in advance.
    Last edited by trandd; July 9th, 2013 at 08:41 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center