Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

One for the XSLT gurus

  • 06-03-2008 10:41am
    #1
    Registered Users, Registered Users 2 Posts: 1,127 ✭✭✭


    Im having this MAJOR problem with JAXP transformations of XML/XSL. So my xsl will have a section like this
    <a href="#"><img src="whatever" ... /></a>
    
    but when it goes through transformation, it comes out like
    <a href="#">
    <img src="whatever" ... />
    </a>
    
    i.e. with a newline character, which somehow causes space between the images, when they should be justified.

    Has anyone come across this before? Is it something to do with the serializer Im using? Which is Xalan.

    Cheers
    Stephen


Comments

  • Closed Accounts Posts: 461 ✭✭markf909


    I *think* that strip space may be what you are looking for.

    http://www.w3schools.com/xsl/el_preserve-space.asp

    Play around with those and see, I can't remember exactly.


  • Registered Users, Registered Users 2 Posts: 189 ✭✭MeWantBroadband


    Check that you are not using indent in the output command in your stylesheet or your Java code.

    BTW Mulberry Tech's XSLT mailing list is the best place for XSLT questions: they even have the editor of the XSLT 2.0 spec as a contributor.


Advertisement