<newRootElement>
<newElementOne>
<Detail dx:each="rootElement/elementOne/*"
dx:attrs="|tag:name()|value:." tag=”A” value=”A1” /Detail>
<Detail dx:ignore="" tag=”B” value=”B1” /Detail>
</newElementOne>
<newRootElement>
On Fri, Jun 24, 2011 at 12:10 PM, Michael Dykman <mdy...@gmail.com> wrote:
> John,
>
> to approach this in dexter would be pretty simple:
>
> <newRootElement>
> <newElementOne>
> <Detail dx:each="rootElement/elementOne/*" tag=”A” value=”A1” /Detail>
> <Detail dx:ignore="" tag=”B” value=”B1” /Detail>
> </newElementOne>
> <newRootElement>
>
>
> compiled through dexter will yield a stylesheet to effect your changes.
>
> - michael dykman
>> --
>> You received this message because you are subscribed to the Google Groups "Dexter-XSL" group.
>> To post to this group, send email to dexte...@googlegroups.com.
>> To unsubscribe from this group, send email to dexter-xsl+...@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/group/dexter-xsl?hl=en.
>>
>>
>
>
>
> --
> - michael dykman
> - mdy...@gmail.com
>
> May the Source be with you.
>
--
- michael dykman
- mdy...@gmail.com
May the Source be with you.
to approach this in dexter would be pretty simple:
<newRootElement>
<newElementOne>
<Detail dx:each="rootElement/elementOne/*" tag=”A” value=”A1” /Detail>
<Detail dx:ignore="" dx:attrs="|tag:name()|value:." /Detail>
</newElementOne>
<newRootElement>
compiled through dexter will yield a stylesheet to effect your changes.
- michael dykman
On Fri, Jun 24, 2011 at 11:11 AM, John Zhang <johngua...@gmail.com> wrote:
the <detail dx:ignore="" /> tag is unnecessary since the compiler will
drop that node anyways.
I personally tend to delete those nodes form the code base to avoid
confusion, but it may be useful
for looking at the original source.
Tracy
- michael dykman
>> >> <newRootElement>
>> >> <newElementOne>
>> >> <Detail dx:each="rootElement/elementOne/*" tag=”A” value=”A1”
>> >> /Detail>
>> >> <Detail dx:ignore="" dx:attrs="|tag:name()|value:." /Detail>
>> >> </newElementOne>
>> >> <newRootElement>
#dexter.bat in windows
running $ dexter.sh foo.xml
produces "foo.xml.xsl"
running your XML data through that XSLT-1.0 stylesheet with any
avilable XSLT v1 processor will give you the output you are looking
for. The xpath function "name()" gives the name of the current
element so it needs not be known.
$ xsltproc foo.xml.xsl mydata.xml
I recommend building dexter it although I would be pleased to provide
you with a binary of the latest version.
On Mon, Jun 27, 2011 at 12:13 PM, Guangyun Zhang