Click here to Skip to main content
16,011,502 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: syntax error '<' Pin
Christian Graus30-Oct-05 16:05
protectorChristian Graus30-Oct-05 16:05 
GeneralRe: syntax error '<' Pin
gr8coaster32930-Oct-05 17:09
gr8coaster32930-Oct-05 17:09 
GeneralRe: syntax error '<' Pin
Christian Graus30-Oct-05 17:17
protectorChristian Graus30-Oct-05 17:17 
GeneralRe: syntax error '<' Pin
gr8coaster32931-Oct-05 9:28
gr8coaster32931-Oct-05 9:28 
GeneralRe: syntax error '<' Pin
Christian Graus31-Oct-05 10:54
protectorChristian Graus31-Oct-05 10:54 
Questionshould i use flash or director with my xml? Pin
lezlea29-Oct-05 21:03
lezlea29-Oct-05 21:03 
AnswerRe: should i use flash or director with my xml? Pin
Sushant_Mathur14-Nov-05 20:10
Sushant_Mathur14-Nov-05 20:10 
QuestionXSLT stylesheet Pin
HpLif28-Oct-05 8:25
HpLif28-Oct-05 8:25 
I am trying to create an XSLT stlesheet for an xbel doc. Can anyone help?
I it has to have to include 2 parameters that will determing whether or not the description and book mark url will be displayed.


this is what I have-

- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
- <xsl:template match="/">
- <html>
- <!-- gets the titile of the document
-->
- <head>
- <title>
<xsl:value-of select="/xbel/title" />
</title>
</head>
- <body>
- <h1>
<xsl:value-of select="/title" />
</h1>
<br />
<xsl:apply-templates />
</body>
<link rel="stylesheet" type="text/css" href="xbel.css" />
</html>
</xsl:template>
- <xsl:template match="/folder">
<br />
<xsl:apply-templates select="." />
<xsl:apply-templates select="folder/folder" />
<br />
</xsl:template>
</xsl:stylesheet>


here is the source-

<?xml version="1.0"?>
<!DOCTYPE xbel PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML" "http://pyxml.sourceforge.net/topics/dtds/xbel-1.0.dtd">
<?xml-stylesheet type="text/xsl" href="C:\Documents and Settings\221442\Desktop\XML\U1027.xsl"?>
<xbel version="1.0">
<title>Some of David's Bookmarks</title>
<folder>
<title>Food</title>
<folder>
<title>Tea</title>
<bookmark href="http://www.uptontea.com/">
<title>Upton Tea Imports</title>
<desc>Purveyor of the world's finest teas.</desc>
</bookmark>
</folder>
<folder>
<title>Spices and Herbs</title>
<bookmark href="http://www.penzeys.com/">
<title>Penzeys Spices</title>
<desc>The best way to get your herbs and spices (both in terms of price, quality, and flavor). Their print catalog is wonderfully educational, and full of recipes.</desc>
</bookmark>
</folder>
<folder>
<title>Chips</title>
<bookmark href="http://www.dirtys.com/">
<title>Dirty Potato Chips</title>
<desc>My very favorite potato chips. Their motto is, "We don't wash out the natural potato flavor, so our chips are crunchier and tastier."</desc>
</bookmark>
<bookmark href="http://www.artsandmarys.com/">
<title>Art's and Mary's: Homestyle Tater Chips</title>
<desc>These are very good too. I usually get the "Dill Tater Chips", since dill chips are not commonly found.</desc>
</bookmark>
<bookmark href="http://www.birdseyefoods.com/tims/">
<title>Tim's Cascade Style Potato Chips</title>
<desc>My chip of choice when I'm in the Pacific Northwest (or whenever else I can find these in New England!). All are good -- especially the "Cracked Peppercorn"!</desc>
</bookmark>
<bookmark href="http://www.capecodchips.com/">
<title>Cape Cod Potato Chips</title>
<desc>Cape Code offers excellent chips made from different potato varieties (Dark Russet, Golden Russet and Yukon Gold). The "Firecracker Barbeque" chips don't last long when I'm around.</desc>
</bookmark>
</folder>
</folder>
<folder>
<title>HTTP Clients</title>
<bookmark href="http://www.mozilla.org/releases/stable.html">
<title>Mozilla</title>
<desc>Mozilla is an open-source web browser and toolkit, designed for standards compliance, performance and portability. Mozilla.org provides binaries for testing and feedback.</desc>
</bookmark>
<bookmark href="http://www.netscape.com/download/">
<title>Netscape</title>
<desc>Netscape 7.0 offers enhanced performance and stability plus a fine-tuned Netscape Gecko browser engine to speed you through the most common online activities.</desc>
</bookmark>
<bookmark href="http://www.opera.com/">
<title>Opera</title>
<desc>Opera is a high-quality Web browser available on a wide range of platforms. The Opera browser is a fast, full-featured, award-winning browser available for operating systems, including Windows, Linux and Mac OS.</desc>
</bookmark>
<bookmark href="http://www.microsoft.com/ie/">
<title>Microsoft Internet Explorer</title>
<desc>Internet Explorer 6 Service Pack 1 (SP1) sets a new standard in privacy, reliability, and flexibility. Come see how Internet Explorer is leading the way on the Web.</desc>
</bookmark>
<bookmark href="http://lynx.browser.org/">
<title>Lynx</title>
<desc>Lynx is a fully-featured World Wide Web (WWW) client for users running cursor-addressable, character-cell display devices (e.g., vt100 terminals, vt100 emulators running on PCs or Macs, or any other character-cell display). It will display Hypertext Markup Language (HTML) documents containing links to files on the local system, as well as files on remote systems running http, gopher, ftp, wais, nntp, finger, or cso/ph/qi servers, and services accessible via logins to telnet, tn3270 or rlogin accounts. Current versions of Lynx run on Unix, VMS, Windows95/NT, 386DOS and OS/2 EMX.</desc>
</bookmark>
<bookmark href="http://www.w3.org/Amaya/">
<title>Amaya</title>
<desc>Amaya is a browser/authoring tool that allows you to publish documents on the Web. It is used to demonstrate and test many of the new developments in Web protocols and data formats. Given the very fast moving nature of Web technology, Amaya has a central role to play. It is versatile and extensible and is available on both Unix and Windows platforms.</desc>
</bookmark>
</folder>
<folder>
<title>Extensible Markup Language (XML)</title>
<bookmark href="http://www.sciam.com/article.cfm?articleID=0008C786-91DB-1CD6-B4A8809EC588EEDF&amp;ref=sciam">
<title>Scientific American: Feature Article: XML and the Second Generation Web: May 1999</title>
<desc>The combination of hypertext and a global Internet started a revolution. A new ingredient, XML, is poised to finish the job. by Jon Bosak and Tim Bray</desc>
</bookmark>
<bookmark href="http://www.sciam.com/article.cfm?articleID=00048144-10D2-1C70-84A9809EC588EF21&amp;ref=sciam">
<title>Scientific American: Feature Article: The Semantic Web: May 2001</title>
<desc>A new form of Web content that is meaningful to computers will unleash a revolution of new possibilities . by TIM BERNERS-LEE, JAMES HENDLER and ORA LASSILA</desc>
</bookmark>
<bookmark href="http://www.w3.org/XML/1999/XML-in-10-points">
<title>XML in 10 Points</title>
</bookmark>
<folder>
<title>RSS</title>
<bookmark href="http://www.webreference.com/authoring/languages/xml/rss/intro/">
<title>Introduction to RSS - WebReference.com</title>
<desc>Rich Site Summary (RSS) is a lightweight XML format designed for sharing headlines and other Web content.</desc>
</bookmark>
<bookmark href="http://www.oreillynet.com/pub/a/network/2000/08/25/magazine/rss91.html">
<title>XML.com: RSS Delivers the XML Promise</title>
<desc>A solid, accessible introduction to working with RSS -- a simple, yet powerful, web content syndication format.</desc>
</bookmark>
</folder>
<folder>
<title>Extensible Stylesheet Language (XSL)</title>
<bookmark href="http://xml.com/pub/a/2000/08/holman/index.html">
<title>XML.com: What is XSLT?</title>
<desc>Part One of XML.com's series on the W3C's Extensible Stylesheet Language Transformation technology, written by XSLT instructor G. Ken Holman</desc>
</bookmark>
</folder>
</folder>
</xbel>



HpLif

-- modified at 14:32 Friday 28th October, 2005
Questionproblem in updation Pin
Nadia stoichov26-Oct-05 17:45
sussNadia stoichov26-Oct-05 17:45 
AnswerRe: problem in updation Pin
Denevers14-Nov-05 13:39
Denevers14-Nov-05 13:39 
AnswerRe: problem in updation Pin
Sushant_Mathur14-Nov-05 19:54
Sushant_Mathur14-Nov-05 19:54 
QuestionSOAP via stdin/stdout - how? Pin
Carsten Leue25-Oct-05 8:33
Carsten Leue25-Oct-05 8:33 
Questionhow can i insert image in .chm file with the help of xml comments?? Pin
parvinder sehrawat23-Oct-05 21:23
parvinder sehrawat23-Oct-05 21:23 
Questionexporting image field from sql server... Pin
l a u r e n21-Oct-05 14:54
l a u r e n21-Oct-05 14:54 
AnswerRe: exporting image field from sql server... Pin
Sushant_Mathur25-Oct-05 0:37
Sushant_Mathur25-Oct-05 0:37 
Questionweb services and oracle Pin
BECK720-Oct-05 11:47
BECK720-Oct-05 11:47 
QuestionFiltering xml data into a web page Pin
Karel Paborsky17-Oct-05 22:36
Karel Paborsky17-Oct-05 22:36 
QuestionSerialize without escaping Pin
mgaerber15-Oct-05 1:31
mgaerber15-Oct-05 1:31 
AnswerRe: Serialize without escaping Pin
Sushant_Mathur25-Oct-05 0:29
Sushant_Mathur25-Oct-05 0:29 
GeneralRe: Serialize without escaping Pin
mgaerber28-Oct-05 2:37
mgaerber28-Oct-05 2:37 
QuestionXML Deserialization of Known Derived Classes Pin
Alexandre G13-Oct-05 21:19
Alexandre G13-Oct-05 21:19 
QuestionAdd new tag after every 5 elements Pin
Sushant_Mathur13-Oct-05 20:48
Sushant_Mathur13-Oct-05 20:48 
AnswerRe: Add new tag after every 5 elements Pin
niansah14-Oct-05 12:32
niansah14-Oct-05 12:32 
GeneralRe: Add new tag after every 5 elements Pin
Sushant_Mathur16-Oct-05 19:00
Sushant_Mathur16-Oct-05 19:00 
QuestionConvert OpenOffice XML to XHTML Pin
kylegreen13-Oct-05 9:02
kylegreen13-Oct-05 9:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.