Kevin (39)
Usenet Archive
- Joined
- Jul 31, 2003
- Messages
- 3
- Reaction score
- 0
I have a document, lets say:
<Doc>
<Ele1 Att1='hello'>
<Ele2 Att2='goodbye'/>
</Ele1>
</Doc>
In XSLT I need to generate an attribute value which contains part of this document as a text string, ie:
<MyOutput XML="<Ele1 Att1='hello'>
<Ele2 Att2='goodbye'/>
</Ele1>"/>
I can output it easily enough at child elements (copy-of), or as a CDATA string in the element content, but I cannot find any way to get it into an attribute.
What should I be doing?
<Doc>
<Ele1 Att1='hello'>
<Ele2 Att2='goodbye'/>
</Ele1>
</Doc>
In XSLT I need to generate an attribute value which contains part of this document as a text string, ie:
<MyOutput XML="<Ele1 Att1='hello'>
<Ele2 Att2='goodbye'/>
</Ele1>"/>
I can output it easily enough at child elements (copy-of), or as a CDATA string in the element content, but I cannot find any way to get it into an attribute.
What should I be doing?