[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Namespaces
Subject: [xsl] Namespaces From: David Totten <xsl@xxxxxxxxxxxxxx> Date: Mon, 9 Jun 2003 14:16:28 -0400 |
Given the following xml, <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet href="elsevier-art5.xsl" type="text/xsl"?> <!DOCTYPE article PUBLIC "-//ES//DTD journal article DTD version 5.0.1//EN//XML" "art501/art501.dtd"> <article docsubtype="fla" xml:lang="en"> <item-info> <jid>CPLETT</jid> <ce:pii>S0009261403003269</ce:pii> <ce:copyright type="full-transfer" year="2003">Elsevier Science B.V.</ce:copyright> </item-info> <head> <ce:title>test</ce:title> <ce:author-group> <ce:author> <ce:given-name>Totten</ce:given-name> <ce:surname>David</ce:surname> </ce:author> </ce:author-group> </head> </article> using this xsl stylesheet: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY xhtml-lat1 "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent"> <!ENTITY xhtml-special "http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent"> <!ENTITY xhtml-symbol "http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent"> <!ENTITY nbsp " "> <!ENTITY copy "©"> <!ENTITY quote """> <!ENTITY rdquo """> <!ENTITY ldquo """> <!ENTITY reg "®"> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ce="http://www.elsevier.com/xml/common/dtd" xmlns:sb="http://www.elsevier.com/common/struct-bib/dtd" xmlns="http://www.w3.org/TR/REC-html40"> <xsl:output method="html" encoding="UTF8"/> <xsl:strip-space elements="*"/> <xsl:template match="/"> <HTML> <HEAD> <META HTTP-EQUIV="Content-language" CONTENT="en-US"/> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;" CHARSET="UTF-8"/> <TITLE> <xsl:value-of select="article/item-info/ce:pii"/> </TITLE> </HEAD> <BODY BGCOLOR="white"> </BODY> </HTML> </xsl:template> </xsl:stylesheet> I would love to know how to get a value for my <TITLE> tag. What am I doing wrong, or misunderstanding? Dave Totten XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Simple XSLT processor, Passin, Tom | Thread | Re: [xsl] Namespaces, G. Ken Holman |
RE: [xsl] Decent and reasonably pri, Passin, Tom | Date | Re: [xsl] read/write in the same xm, abbouh |
Month |