[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Getting values

Subject: RE: Getting values
From: Jarno.Elovirta@xxxxxxxxx
Date: Fri, 30 May 2003 09:08:10 +0300
RE:  Getting values
Hi,

[snip]

> So, my XSLT engine is like following
> 
> <?xml version="1.0" encoding="UTF-8"?>
     <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
>          <xsl:template match="/">
>             <xsl:text 
> disable-output-escaping="yes">&lt;</xsl:text>rdf:RDF
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns:dc="http://purl.org/dc/elements/1.0/"
> xmlns:vCard="http://www.w3.org/2001/vcard-rdf/3.0#"<xsl:text
> disable-output-escaping="yes">&gt;</xsl:text>
>              <xsl:text
> disable-output-escaping="yes">&#13;&#10;&#9;&lt;</xsl:text>rdf
> :Description
> rdf:about="           <----------------------- I WOULD LIKE 
> TO GET THE VALUE
> OF @content (in DC.Source)

You can go about it like this, but this is definately the way you should do it with XSLT. Here you're trying to generate start and end-tags by basically writing text, but in XSLT when you want to generate XML you generate a Result Tree and then let the engine to serialize it; have you read the XSLT spec or a tutorial? Anyhow, the above should be something like

  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
           xmlns:dc="http://purl.org/dc/elements/1.0/"
           xmlns:vCard="http://www.w3.org/2001/vcard-rdf/3.0#">
    <rdf:Description rdf:about="{html/head/meta[@name='DC.Source']/@content}">

Cheers,

Jarno - E-Craft: Embryonic (Remix)

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.