Jump to content

Search the Community

Showing results for tags 'XSL'.

The search index is currently processing. Current results may not be complete.
  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 8 results

  1. Hi, XSL I want to make a simple display text(Google) and when i click it should redirect to https://www.google.com; How to implement this in xsl?
  2. Is it possible to use XSL template to pull data from multiple sharepoint lists in SharePoint 2013 and showcase in a Dashboard?
  3. The output of this XML I need to give all employees a 5% raise. I am fairly new to XML and I need to figure out the XSL to give me this output. This is what I have. I am sure this is something to do with my XPath <?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href="Lesson_11_obj_2.xsl" type="text/xsl"?><!DOCTYPE Employees><Employees xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="Lesson_11_obj_2.xsd">><Employee> <First>John</First> <Last>Smith</Last> <Phone Type="Cell">1-800-123-4567</Phone> <Birthday>1960-05-25</Birthday> <HourlyRate>35.85</HourlyRate></Employee><Employee> <First>Jane</First> <Last>Jones</Last> <Phone Type="Work">1-800-999-9999</Phone> <Birthday>1980-11-01</Birthday> <HourlyRate>58.17</HourlyRate></Employee><Employee> <First>Lisa</First> <Last>Galo</Last> <Phone Type="Home">1-978-999-9999</Phone> <Birthday>1980-01-01</Birthday> <HourlyRate>20.17</HourlyRate></Employee><Employee> <First>Greg</First> <Last>Morgan</Last> <Phone Type="Home">1-603-865-9874</Phone> <Birthday>1995-11-01</Birthday> <HourlyRate>30.17</HourlyRate></Employee><Employee > <First>Michelle</First> <Last>Lewis</Last> <Phone Type="Cell">1-603-434-9874</Phone> <Birthday>1978-11-01</Birthday> <HourlyRate>15.00</HourlyRate></Employee><Employee> <First>Mike</First> <Last>Westbrook</Last> <Phone Type="Cell">1-910-265-3214</Phone> <Birthday>1972-06-10</Birthday> <HourlyRate>123.00</HourlyRate></Employee><Employee > <First>Sue</First> <Last>Jillian</Last> <Phone Type="Work">1-910-987-1214</Phone> <Birthday>1972-08-10</Birthday> <HourlyRate>23.00</HourlyRate></Employee><Employee > <First>Bob</First> <Last>Johnson</Last> <Phone Type="Cell">1-213-231-1214</Phone> <Birthday>1974-10-10</Birthday> <HourlyRate>20.50</HourlyRate></Employee><Employee > <First>David</First> <Last>Little</Last> <Phone Type="Cell">1-980-540-9087</Phone> <Birthday>1943-02-10</Birthday> <HourlyRate>20.05</HourlyRate></Employee></Employees> <?xml version="1.0" ?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html"/><xsl:template match="/"> <xsl:for-each select="/Employees/Employee/"> <xsl:for-each select="HourlyRate"> First Name: <xsl:value-of select="First"/><br/> Last Name: <xsl:value-of select="Last"/><br/> New Hourly Rate<xsl:value-of select="'HourlyRate' * 1.05"/> </xsl:for-each> </xsl:for-each></xsl:template></xsl:stylesheet>
  4. Hello, I am printing a reports, My problem is that i jump to next page in 2 situations. 1. number of rows in page exceeded the number that the user set. 2. When we handle another customer.(All the customers are in the same XML) And we don't want that customer A will see transactions of customer B.(we give the reports to the customers) Jumping to new page because of 2 reasons cause me a problem that sometimes at the beginning of the page i jump to new page because position()%RowsInPage = 0.. I attached the customer report XSL file. Oz
  5. Hi thereI'm not a programmer, but need some help to find a way of displaying text in the CDATA section of an XML file using XSL. Or if there is an alternative to using XSL then I'm all ears (eyes?). Take, for example, the following line of my XML file: <property id="instruction1" media="screen"><![CDATA[<p>Select the <span class="bold">option</span> you think is correct.</p>]]></property> I ONLY want to display the text between the 'p' tags, i.e. "Select the option you think is correct." The formatting 'span' tag can be included if necessary, just as long as the 'p' tags are not displayed. Is this possible? Edit: I should clarify that I would like to create an XSL to use to display the XML content in a browser window. The full XML file is attached if required. Thanks a lotNiall 01_01_005.xml
  6. hello to all, I'm newbie with XML, XSL and I've been trying and I'm only getting the first 2 rows(headers) of the output desired so far. May somebody help me in how to get output of table below with an xsl stylesheet using the XML input below. The XML input is: <?xml version="1.0" encoding="UTF-8"?><TUPH><KIND><ABx>Event 1</ABx><RN><MO><CDy>11</CDy><CDy>5</CDy> </MO> <MO><MJp>6</MJp><MJp>7</MJp><MJp>9</MJp> </MO> </RN><JN><MO><CDy>8</CDy> </MO> <MO><MJp>1</MJp><MJp>3</MJp> </MO> </JN> </KIND><KIND> <ABx>Event 2</ABx><RN><MO><CDy>3</CDy></MO> <MO><MJp>5</MJp></MO> </RN><JN><MO><CDy>6</CDy></MO> <MO><MJp>2</MJp></MO> </JN></KIND> </TUPH> ‚ÄčThe XSL I have so far is: <?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output indent="yes" method="html"/> <xsl:template match="/"><html><table border="1"><tr><td></td><td>RN</td><td></td><td>JN</td><td></td> </tr><tr><td>ABx</td><td>CDy</td><td>MJp</td><td>CDy</td><td>MJp</td> </tr><xsl:apply-templates select="KIND"/> </table> </html></xsl:template> <xsl:template match="KIND/ABx"><td> <xsl:apply-templates select="ABx"/></td></xsl:template> </xsl:stylesheet> The output I'm looking for is: <html> <table border="1"> <tr> <td></td> <td>RN</td> <td></td> <td>JN</td> <td></td> </tr> <tr> <td>ABx</td> <td>CDy</td> <td>MJp</td> <td>CDy</td> <td>MJp</td> </tr> <tr> <td>Event 1</td> <td>11</td> <td>6</td> <td>8</td> <td>1</td> </tr> <tr> <td></td> <td>5</td> <td>7</td> <td></td> <td>3</td> </tr> <tr> <td></td> <td></td> <td>9</td> <td></td> <td></td> </tr> <tr> <td>Event 2</td> <td>3</td> <td>5</td> <td>6</td> <td>2</td> </tr> </table> </html> Thanks in advance for any help.
  7. Hello all, I have an xml document created using XMetal. In that xml file there are many hierarchy elements used. I have an xsl file in which the main title of the document should come in header file. And the chapter names in the xml also should appear in the output. This chapter names are dynamic in nature. they should change according to the chapter number in body. I will explain the above with a sample example. Here I am giving an example for the main page.In main page also i need the main titile of the document. MY XML file: I am using composite topic. <dita> <topic>Technical manual<title> <concept><title>Volume name</title> <concept><title>Part A: </title> <concept><title>Chapter name</title> <concept><title>section name</title> <concept><title>sub sections</title> <concept><title>Volume name</title> MY xslt file <!-- parameters that are to be set by the author at this point --> <xsl:variable name="topic_title"><xsl:value-of select="//topic/@title"/></xsl:variable> <!-- # call-template | COVER PAGE--> <xsl:template name="main.page"> <fo:block xsl:use-attribute-sets="font10"> <fo:table table-layout="fixed" margin-top="35mm"> <fo:table-column column-number="1" column-width="50%"/> <fo:table-body> <fo:table-row> <fo:table-cell column-number="1" text-align="center" number-columns-spanned="2"> <fo:block padding-top="10" border-top-style="solid" border-top-width="thin" border-bottom-style="solid" border-bottom-width="thin" font-size="30pt" font-weight="bold"> <xsl:value-of select="$dita_topic_title"/></fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block> </xsl:template> please help me how to proceed with this thanks in advance
  8. hi all, i m very new to xslt. i need a help.i want add a root tag in my xml using xslt where xml file returning more than one rows. my xslt is demo.xsl <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output indent="yes"/> <xsl:strip-space elements="*"/> <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template> <xsl:template match="/*:ExportXML"> <sources> <xsl:for-each-group select="*:record" group-by="*:field[@name=ContestNumber]"> <sourcetype> <sourcelist> </sourcelist> </sourcetype> </xsl:for-each-group> </sources> </xsl:template> <xsl:template match="*:field"> <xsl:element name="{lower-case(@name)}"> <xsl:apply-templates/> </xsl:element> </xsl:template> <xsl:template match="*:record"> <JobPositionPostings> <JobPositionPosting> <xsl:apply-templates select="*:field[starts-with(@name,'ContestNumber')]"/> <JobDisplayOptions> <xsl:apply-templates select="*:field[starts-with(@name,'ManagerRequisitionTitle')]"/> </JobDisplayOptions> </JobPositionPosting> </JobPositionPostings> </xsl:template> <xsl:template match="*:field[@name=TypeName]"/> <xsl:template match="*:field[@name=TypeName]" mode="title"> <xsl:apply-templates/> </xsl:template> </xsl:stylesheet> my output is cming like this requisition.xml <?xml version="1.0" encoding="UTF-8"?><JobPositionPostings> <JobPositionPosting> <jobpositionpostingid>1300000F</jobpositionpostingid> <HiringOrg> <Industry> <summarytext>Project Manager</summarytext> </Industry> <Contact> <PersonName/> </Contact> </HiringOrg> <JobDisplayOptions/> <JobPositionInformation> <JobClassifications> <PrimaryJobCategory/> </JobClassifications> <JobPositionDescription/> <JobPositionLocation/> <CompensationDescription> <Pay/> </CompensationDescription> <JobPositionRequirements> <JobExperience/> <JobQualifications/> </JobPositionRequirements> </JobPositionInformation> <HowToApply> <ApplicationMethods> <ByEmail/> <ByWeb/> </ApplicationMethods> </HowToApply> </JobPositionPosting></JobPositionPostings><JobPositionPostings> <JobPositionPosting> <jobpositionpostingid>1300000H</jobpositionpostingid> <HiringOrg> <Industry> <summarytext>Project Manager</summarytext> </Industry> <Contact> <PersonName/> </Contact> </HiringOrg> <JobDisplayOptions/> <JobPositionInformation> <JobClassifications> <PrimaryJobCategory/> </JobClassifications> <JobPositionDescription/> <JobPositionLocation/> <CompensationDescription> <Pay/> </CompensationDescription> <JobPositionRequirements> <JobExperience/> <JobQualifications/> </JobPositionRequirements> </JobPositionInformation> <HowToApply> <ApplicationMethods> <ByEmail/> <ByWeb/> </ApplicationMethods> </HowToApply> </JobPositionPosting></JobPositionPostings><JobPositionPostings> <JobPositionPosting> <jobpositionpostingid>1300000T</jobpositionpostingid> <HiringOrg> <Industry> <summarytext>Project Manager</summarytext> </Industry> <Contact> <PersonName/> </Contact> </HiringOrg> <JobDisplayOptions/> <JobPositionInformation> <JobClassifications> <PrimaryJobCategory/> </JobClassifications> <JobPositionDescription/> <JobPositionLocation/> <CompensationDescription> <Pay/> </CompensationDescription> <JobPositionRequirements> <JobExperience/> <JobQualifications/> </JobPositionRequirements> </JobPositionInformation> <HowToApply> <ApplicationMethods> <ByEmail/> <ByWeb/> </ApplicationMethods> </HowToApply> </JobPositionPosting></JobPositionPostings> i want that Root tag <JobPositionPostings> just as root tag(open and close one time) but its repeating for every row please suggest me any solution for this.thanks in advance.
×
×
  • Create New...