473,378 Members | 1,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

xslt formatting question

Jon
I would like to make a table using xslt and I need to put html anchors in
the table. I want to do something like the following, but can't figure out
how...
Anyone able to help out?

<xsl:for-each select="PayDet">
<tr>
<td>
<xsl:for-each select="Vendor_Invoice_Id">
<xsl:apply-templates />
<a name="<xsl:value-of select="Vendor_Invoice_Id" />">
<xsl:value-of select="Vendor_Invoice_Id" />
</a>
</xsl:for-each>
</td>
</tr>
<xsl:for-each>
Feb 8 '06 #1
2 1030
Jon
Figured it out,

I can do the following

<a>
<xsl:attribute name="name"><xsl:value-of select="." /></xsl:attribute>
<xsl:apply-templates />
</a>

"Jon" <ru******@msn.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I would like to make a table using xslt and I need to put html anchors in
the table. I want to do something like the following, but can't figure out
how...
Anyone able to help out?

<xsl:for-each select="PayDet">
<tr>
<td>
<xsl:for-each select="Vendor_Invoice_Id">
<xsl:apply-templates />
<a name="<xsl:value-of select="Vendor_Invoice_Id" />">
<xsl:value-of select="Vendor_Invoice_Id" />
</a>
</xsl:for-each>
</td>
</tr>
<xsl:for-each>

Feb 8 '06 #2
Jon wrote:
Figured it out,

I can do the following

<a>
<xsl:attribute name="name"><xsl:value-of select="." /></xsl:attribute>
<xsl:apply-templates />
</a>


Or, neater, <a name="{.}"><xsl:apply-templates/></a>

///Peter
--
XML FAQ: http://xml.silmaril.ie/
Feb 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Jeff Rubard | last post by:
I am curious to know whether anyone has experience using XSLT for web XML (non-XHTML) styling, either with CSS or standalone. I myself have engaged in rather unsuccessful experiments with the...
8
by: valued customer | last post by:
What do you think is the future of efforts to reduce the "verbosity" of XSLT, ostensibly by people who have had years of experience working with this technology? (example site)...
1
by: Lisa | last post by:
I need to apply the HTML formatting tags and the French accented characters in a XML document. The XML is generated from a database that has HTML tags and French accented characters in the records....
4
by: Ringo Langly | last post by:
Hi all, I'm a seasoned web programmer, but I've never touched XSLT. It's always been one of those acronyms I've never needed to educate myself on. Now... we're working with a web content...
3
by: danmc91 | last post by:
Hi, I'm just getting going with xml and xslt. I'm trying to write what are essentially man pages and I need 3 output formats. 1) nroff -man format for real man pages 2) html for an online...
12
by: Keith Chadwick | last post by:
I have a fairly hefty XSLT file that for the sake of debugging and clarity I wish to split into some separate sub-templates contained within the same file. The master template calls an...
3
by: Gordon Moore | last post by:
Hi, I'm new to using xml/xslt and although I can create an xml document using the dataset.WriteXml statement, and I have created an xslt to transform the xml into the output I want, I have to...
11
by: cmay | last post by:
I am having this problem... Lets say that your source XML is formatted like this: <somenode> Here is some text Here is some more text </somenode> When to a <xsl:value-of select="somenode" /I...
4
by: n.phelge | last post by:
I need to perform an XSLT to set the namespace on some XML and I need to preserve the original document line formatting to assist with error handling (so the line number from any schema validation...
3
by: realmerl | last post by:
Hi All. I'm trying to transform a html document into plain text via xslt. Simple you say! (i hope) I have got it working, by using the magnificent <xsl:value-of select="."/>. This returns the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.