Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Possible bug in XML formatter
Possible bug in XML formatter [message #218325] Sat, 26 July 2008 20:37 Go to next message
Jean-Noel Rivasseau is currently offline Jean-Noel RivasseauFriend
Messages: 1
Registered: July 2009
Junior Member
Using the following XML file, the formatting wont work, eg text in source
and target elements wont get "wrapped" properly.

If you remove the schema reference it works as expected. So it may be
schema related, but I looked at it and did not see anything that would
prevent the formatting. I am no XSD expert though, so it would be nice if
someone could look at this and confirm if it is a bug, or just a feature
of the XSD schema (in which case I'd like to know which :)

XML file below:

<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2
http://docs.oasis-open.org/xliff/v1.2/cs02/xliff-core-1.2-st rict.xsd">
<file datatype="javapropertyresourcebundle"
original="messages-images.properties" product-name="test"
source-language="en" target-language="fr">
<body>
<trans-unit id="test">
<source>Lorem ipsum eum habeo eripuit ut. His omittam facilisis pertinacia
te. Ad mel propriae prodesset, ut cum nobis nullam. His ea hinc principes
complectitur, eruditi quaestio delicatissimi ius ne, te per mazim oratio. Vim
ea ipsum doming impetus, dolorum sensibus quaerendum eu pro, per wisi
partiendo at.</source>
<target>Lorem ipsum eum habeo eripuit ut. His omittam facilisis pertinacia
te. Ad mel propriae prodesset, ut cum
nobis nullam. His ea hinc principes complectitur, eruditi quaestio
delicatissimi ius ne, te per mazim oratio. Vim ea
ipsum doming impetus, dolorum sensibus quaerendum eu pro, per wisi
partiendo at.</target>
</trans-unit>
</body>
</file>
</xliff>
Re: Possible bug in XML formatter [message #218365 is a reply to message #218325] Sun, 27 July 2008 12:56 Go to previous message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

It could be a bug as I know that the XML team worked on making the
formatter Schema aware, but there are some edge cases it's still not
handling correctly. So if you can please open a bug and attach the
XML file below to it, it will be better addressed through bugzilla than
here.

Dave


Jean-Noel Rivasseau wrote:
> Using the following XML file, the formatting wont work, eg text in
> source and target elements wont get "wrapped" properly.
>
> If you remove the schema reference it works as expected. So it may be
> schema related, but I looked at it and did not see anything that would
> prevent the formatting. I am no XSD expert though, so it would be nice
> if someone could look at this and confirm if it is a bug, or just a
> feature of the XSD schema (in which case I'd like to know which :)
>
> XML file below:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2
> http://docs.oasis-open.org/xliff/v1.2/cs02/xliff-core-1.2-st rict.xsd">
> <file datatype="javapropertyresourcebundle"
> original="messages-images.properties" product-name="test"
> source-language="en" target-language="fr">
> <body>
> <trans-unit id="test">
> <source>Lorem ipsum eum habeo eripuit ut. His omittam
> facilisis pertinacia te. Ad mel propriae prodesset, ut cum nobis nullam.
> His ea hinc principes complectitur, eruditi quaestio delicatissimi ius
> ne, te per mazim oratio. Vim ea ipsum doming impetus, dolorum sensibus
> quaerendum eu pro, per wisi partiendo at.</source>
> <target>Lorem ipsum eum habeo eripuit ut. His omittam
> facilisis pertinacia te. Ad mel propriae prodesset, ut cum
> nobis nullam. His ea hinc principes complectitur, eruditi quaestio
> delicatissimi ius ne, te per mazim oratio. Vim ea
> ipsum doming impetus, dolorum sensibus quaerendum eu pro, per wisi
> partiendo at.</target>
> </trans-unit>
> </body>
> </file>
> </xliff>
>
Previous Topic:el and jsp fragment validation
Next Topic:Convert javax.wsdl.Definition to wst.Definition
Goto Forum:
  


Current Time: Thu Apr 25 19:28:50 GMT 2024

Powered by FUDForum. Page generated in 0.02927 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top