[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Techniques for transforming content like "<tag>content</tag>" to "
[xsl] Techniques for transforming content like "<tag>content</tag>" to "content "
Subject: [xsl] Techniques for transforming content like "<tag>content</tag>" to "<tag>content</tag>" From: "Karr, David" <David.Karr@xxxxxxxx> Date: Thu, 24 Jul 2003 10:26:43 -0700 |
I have a requirement to write XSLT transformers for XML documents, some of whose element contents can consist of "encoded" XML, like this: <other> <key>stuff</key> <value><userid>98765</userid></value> </other> We need to transform this to this: <other> <key>stuff_userid</key> <value>98765</value> </other> There's no avoiding that this will be messy, so I'm only aiming to clean up the worst part of this process: how I parse the "encoded" XML. A POC for this is just using "substring-after" and "substring-before" to set the pieces into variables. Is there a better way to parse content like this? XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] saxon:omit-meta-tag attri, Jeni Tennison | Thread | RE: [xsl] Techniques for transformi, Américo Albuquerque |
Re: [xsl] Document summary using xs, Mukul Gandhi | Date | RE: [xsl] saxon:omit-meta-tag attri, Ryan McFall |
Month |