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

XSL 1.1 -> Asking for an attribut namespace

Subject: XSL 1.1 -> Asking for an attribut namespace
From: news@xxxxxxxxxxx
Date: Wed, 29 Mar 2006 16:39:03 +0200
xsl dataset namespace
Hello List,

I've a XML:
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"  ?>
<Spalten xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <Datenursprung>//SVERLAUF</Datenursprung>
    <Spalte anzahl="1" breite-in-prozent="3" text-align="right">
        <Titel fix="true"></Titel>
        <Data fix="true" fo:text-align="right">position()</Data>
    </Spalte>
</Spalten>

The problem I have comes when I try to copy all attributes of the <Data/>
node into my result dataset. I want to copy each attribut as long as it has
a namespace of "fo:".

  <xsl:for-each select="$ListData/Spalten/Spalte[$i]/@*">    
    <xsl:if test="starts-with(name(), 'fo:')">
      <xsl:copy-of select="."/>
    </xsl:if>
  </xsl:for-each>

name() always gives me back the correct name, but without the namespace of
the attribut. I want to filter ther attributes this way since I dont want to
have attributes like "anzahl" in my FO result dataset.

Doeas anybody hase a idea how I can solve my probem?
Thanks & with best regards, Jan

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.