|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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"><</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">></xsl:text>
> <xsl:text
> disable-output-escaping="yes"> 	<</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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








