Hy,
I'm having trouble with a xsl Styleshett transformation which i use to
translate xml tags from one natural language to another (i mean really the
tags
names, while tghe tags contents should stay the same.

While this works perfectly with the first version of my xsl Stylesheets:

<?xml version="1.0" encoding="UTF-8"?>
<SubscriptionRequest Sender="motivmgr"
TimeStamp="2004-02-13T12:33:53.509+01:00">
    <AUSSubscription SubscriptionID="1"
ValidUntilTimeStamp="2004-02-14T12:33:53.506+01:00">
        <LineID></LineID>
        <Hysteresises>5</Hysteresises>
        <PreviewTime>60</PreviewTime>
    </AUSSubscription>
</SubscriptionRequest>

got perfectly transformed to:


<?xml version="1.0" encoding="ISO-8859-1"?>
<AboAnfrage xmlns="vdv454ger" Sender="motivmgr"
Zst="2004-02-13T12:33:53.509+01:00">
    <AboAUS AboID="1" VerfallZst="2004-02-14T12:33:53.506+01:00">
        <LinienID/>
        <Hysterese>5</Hysterese>
        <Vorschauzeit>60</Vorschauzeit>
    </AboAUS>
</AboAnfrage>


the untransformed xml come from java-classes generated with castor from an
xsd schema description file.
Now, i've got a new description file, an new java classes, and my input
looks like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<SubscriptionRequest Sender="motivmgr"
    TimeStamp="2004-02-13T10:47:01.314+01:00" xmlns="vdv454eng">
    <AUSSubscription SubscriptionID="1"
ValidUntilTimeStamp="2004-02-14T10:47:01.314+01:00">
        <LineID></LineID>
        <Hysteresises>5</Hysteresises>
        <PreviewTime>60</PreviewTime>
    </AUSSubscription>
</SubscriptionRequest>

but my xsl transformation returns this:

<?xml version="1.0" encoding="UTF-8"?>



        5
        60



Meaning every tag but the top encoding tag is simply removed but the values
>from inside the tags are still at their exact place.

I see that encoding changed in the input, but i treid for hours wuith
different encoding setting without any success.
I even tried to take the inoput xml into an external xml file, and tested
with a modification of the SimpleTransform example from the xalan
distribution,
but that just gave me even more questions - here, whatever i use, xml input
which i made sure is utf or iso, with matching ar different encoding tag (an
utf file with iso encoding tag, e.g.)  with the old xsl that works in my
program and with the new xsl that doesn't work in my program, i always get
an
output with removed tags.

It seems to have something to do with text encoding, this is what changed in
the input data in my program, but i have no idea where to look at, and
couldn't find a hint in the docs or the list archive.

Henning



Reply via email to