Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8551669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:14:44+00:00 2026-06-11T14:14:44+00:00

So i have some style content saved in the node @style and i want

  • 0

So i have some style content saved in the node @style and i want to call it to form the style attribute of the <span> tag. it is also insufficient, so i want to append the margin-left:700px as part of the style attribute for the <span> tag. is this do-able?

by the way, i cannot edit the database which the xsl is calling as it is provided by the client

<span style="<xsl:copy-of select="Root/Node/MyFile/MyStyle/@style" margin-left:700px">
    <xsl:copy-of select="Root/Node/MyFile/MyCaption/Caption"/>
</span>

Btw, i tried the above and Altova complains that the Character < from <xsl... is grammatically unexpected.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:14:45+00:00Added an answer on June 11, 2026 at 2:14 pm

    Your quotes are probably screwing up the XSLT, try this:

    <span>
        <xsl:attribute name="style">
          <xsl:copy-of select="Root/Node/MyFile/MyStyle/@style" />
          <xsl:text> margin-left:700px</xsl:Text>
        </xsl:attribute>
    
        <xsl:copy-of select="Root/Node/MyFile/MyCaption/Caption"/>
    </span>
    

    I cant test it at the moment though…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code like this: var content = document.getElementById('myDivId'); function MyFunction() { alert(content.style.height);
I have a button style where I have some Path seth in Content property.
I have a form in codeigniter to save some html content to the database.
I have some CSS style that does not work in IE and that works
I'm trying to create a preferences window. In it I have some checkbox style
I have some mega menu style menus on a site I maintain. These are
I have a link to some style sheet from the Yahoo Developer Network, this
Possible Duplicate: Default textbox border-style and width I have some TextBox on my page
I have some HTML Code: <html> <head> <title>css test</title> <style type=text/css> .box{width:100%;float:left;background:red} </style> </head>
let's say that I have some <TR style = background-color : red ;> and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.