xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Novice question: selecting an element based on an attribute id


Subject: RE: [xsl] Novice question: selecting an element based on an attribute id
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 20 Mar 2002 18:24:45 -0000

>   I'm an novice user of XSLT but was tasked to transform an
> incoming XML file into another format. So far so good but I
> ran into a perplexing problem. Here's the short example of an
> incoming XML file:
>
>     <object>
>         <class  name="TestF">
>             <field name="_str1" type="java.lang.String"/>
>             <field name="_str3" type="java.lang.String"/>
>         </class>
>         <String field="_str1" myId="28"><![CDATA[a test of
> referencing.]]></String>
>         <String field="_str3" myIdRef="28"/>
>     </object>
>
>   This needs to be transformed simply to
>
>   </object>
>         <_str1><![CDATA[a test of string referencing.]]></_str1>
>         <_str3><![CDATA[a test of string referencing.]]></_str3>
>     </object>
>
>   As you can see,

I may be blind, but I can't see. Could you explain more clearly the
relationship of your output to your input?

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor